feng319
2007-12-14, 10:00
实现sa函数的fft并绘频谱
m函数如下
function f=k(disp1,disp2)
x=-10:0.001:10;[email protected](fengjiang3)
y1=sinc(x);
y2=fft(y1);
subplot(121);disp1=plot(x,y1);
subplot(122);disp2=plot(x,y2);
end
m函数如下
function f=k(disp1,disp2)
x=-10:0.001:10;[email protected](fengjiang3)
y1=sinc(x);
y2=fft(y1);
subplot(121);disp1=plot(x,y1);
subplot(122);disp2=plot(x,y2);
end