Howto Animate Graphs in Matlab
A Simple Example 1234567891011121314clear all; close all; clc; f0 = 10; N = 1024; t = linspace(0,10,N); NFFT = 2^nextpow2(N); fs = 1/(t(2)-t(1)); aa = 0.001:0.002:0.5; L = length(aa); for kk = 1:L a = aa(kk); ff = f0 – a*t; y = cos(2*pi*ff.*t); periodogram(y,[],NFFT,fs); vline(f0); ylim([-50,2]) [...]

