MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB信号处理] 大伙帮忙看下这段程序错在哪? 谢了 (https://www.labfans.com/bbs/showthread.php?t=14403)

~~卍卍~~ 2012-03-14 18:53

大伙帮忙看下这段程序错在哪? 谢了
 
f1=49.8;
t=0:0.001:1;
for m=0:49;
if k==0
x(t)=0.2;
elseif k==1
x(t)=5*sin(2*pi*f1*t+45);
elseif k==2:2:49
x(t)=(2/m)*sin(2*pi*f1*t+30);
elseif k==3:2:49
x(t)=(3/m)*sin(2*pi*f1*t+60);
end


所有时间均为北京时间。现在的时间是 03:42

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