% Matlab commands for demonstrating chirps and fm
%--  3:48 PM 11/01/01 --%
fs=11025;
t=0:1/fs:1;
psi1 = 2*pi*440*t.^2 + 2*pi*440*t;
psi2 = pi*440*t.^2 + 2*pi*440*t;
s1 = cos(psi1);
s2 = cos(psi2);
sound(s1)
sound(s2)
sound(s2)
sound(s1)
specgram(s1,512,fs)
specgram(s2,512,fs)
s = cos(2*pi*1000*t + 100*cos(2*pi*t));
sound(s)
s = cos(2*pi*1000*t + 500*cos(2*pi*t));
sound(s)
s = cos(2*pi*1000*t + 100*cos(2*pi*t));
specgram(s,512,fs)
quit
%--  1:18 PM 11/09/01 --%