MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 初学者 help (https://www.labfans.com/bbs/showthread.php?t=14682)

pgwade 2012-04-13 20:40

初学者 help
 
syms t, y1,y2;
Fs=10000;
t=[0,1/Fs,0.1];
y1=sawtooth(2*pi*50*t,0.5);
subplot(221); plot(t,y1);
subplot(222); ezplot(abs(fourier(y1)),[-5,5]);
y2=sawtooth(2*pi*50*(t-3),0.5);
subplot(223); plot(t,y3);
subplot(224); ezplot(abs(fourier(y2)),[-5,5]);


用matlab展示傅里叶变换,哪里错了? fourier、ezplot怎么调用?


所有时间均为北京时间。现在的时间是 12:36

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.