t=0.1:1/1846220:(10/500000+0.1); %simple rate T=1/1846220 sec,means that sample four point in a circle! yt=0.25*sin(2*500000*pi*t)+0.950; %f=500KHz ,create 37 sample point figure stem(yt); % the figure that have four 3.**? per circle title('37 sample point') sp=fft(yt); figure stem(sp); title('|X(k)| of yt')
变换本在频域应用有0.95*37=35.15(yt=0.25*sin(2*500000*pi*t)+0.950; )的直流分量的,但看不到,请赐教,如图: |