junzifei 发表于 2007-4-27 20:55

回复 #12 不是很傻 的帖子

N=10000;
>> t=0:0.0001:0.999;
>> X=sin(2*pi*50*t)+sin(2*pi*100*t)+sin(2*pi*200*t);
>> Y=fft(X,N);
>> P=abs(Y)*2/N;
>> %Pyy=Y.*conj(Y)/1024;
>> f=10000*(0:N/2-1)/N;
>> subplot 211; plot(f,P(1:N/2)); grid;
>> Pyy=P.*P;
>> subplot 212; plot(f,Pyy(1:N/2)); grid;
采样频率运行一下看看
然后把图放大到同一尺度
结果是一样的
频率高只是增加计算量
页: 1 [2]
查看完整版本: 关于FFT变换后纵坐标的含义