File:Chirp animation.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Chirp_animation.gif (640 × 479 pixels, file size: 234 KB, MIME type: image/gif, looped, 11 frames, 5.5 s)
File information
Structured data
Captions
Summary
[edit]DescriptionChirp animation.gif |
English: Chirp and impulse signals. |
Date | |
Source | Own work |
Author | Andrew0090 |
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
% Generate a chirp signal animation
% To combine frames into an animated .gif file use:
% convert -delay 50 output/*.png chirp_animation.gif
N=513;
freqs=200;
t = linspace (-0.5, 0.5, N);
n=0;
lw = 2;
fs = 10;
fw = 'bold';
for dispersion = linspace (-0.001, 0.001, 11)
sig = zeros (freqs, N);
for f = 1:freqs
sig(f,:) = cos (f * pi * (t - dispersion * f));
end
subplot (2, 1, 1);
plot (t, sum (sig, 1), 'r', 'linewidth', lw);
axis([-0.5, 0.5, -100, 200]);
set(gca, 'fontsize', fs);
set(gca, 'FontWeight', fw);
set(gca, 'linewidth', lw)
set(gca, 'XTick', linspace (-0.5, 0.5, 5));
grid;
subplot (2, 1, 2);
hold off;
plot (t, sig(1,:), 'linewidth', lw);
hold on;
plot (t, sig(4,:) + 3, 'linewidth', lw);
plot (t, sig(16,:) + 6, 'linewidth', lw);
plot (t, sig(64,:) + 9, 'linewidth', lw);
plot ([1,1]*dispersion*1, [-1.2,1.2], 'r', 'linewidth', 6);
plot ([1,1]*dispersion*4, [1.8,4.2], 'r', 'linewidth', 6);
plot ([1,1]*dispersion*16, [4.8,7.2], 'r', 'linewidth', 6);
plot ([1,1]*dispersion*64, [7.8,10.2], 'r', 'linewidth', 6);
axis([-0.5, 0.5, -1.5, 10.5], 'labelx', 'tickx');
set(gca, 'fontsize', fs);
set(gca, 'FontWeight', fw);
set(gca, 'linewidth', lw)
set(gca, 'XTick', linspace (-0.5, 0.5, 5));
grid;
pause(0.5);
n = n+1;
filename=sprintf('output/%05d.png',n);
print(filename, '-S640,480');
end
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:52, 5 December 2013 | 640 × 479 (234 KB) | Andrew0090 (talk | contribs) | Color and thickness of phase markers. | |
03:38, 5 December 2013 | 640 × 479 (232 KB) | Andrew0090 (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on pt.wikipedia.org