% I try to use specgram.m according to my understanding.
% Except that the amplitude looks ok, the real and imaginary parts are
%all messed up.
% Can the real and imaginary parts be recovered with specgram command?
t=-15:.1:15;
t_w=-5:.1:5;
p=exp(-t.^2/2);
window=exp(-t_w.^2/2);
w=-10:.1:10;
S=specgram(p,w/(2*pi),10,window',100);
subplot(3,3,7),plot(real(S))
subplot(3,3,8),plot(imag(S))
subplot(3,3,9),plot(abs(S))
Plz do favor me and comment on this... any ideas/codes/instructions are obliged..