%hanning_plot

x=cos(2*pi*[0:1023]*4.5/1024);
h=hanning(1024,'periodic');
xh=x.*h';
stem([0:1023]/1024,abs(fft(xh))), shg
xh2=[xh,zeros(1,10240)];
hold on
plot([0:10*1024+1023]/1024/11,abs(fft(xh2))), shg
plot([0:10*1024+1023]/1024/11,abs(fft(xh2)),'.'), shg
xlim([0,0.01]), shg
