[求助]matlab老是提示"*"错误
N=1024;
u=zeros(1,N);
t=0:0.02:1;
m=0.1;U=1;w=100*pi;wi=20*pi;
u(t)=U*[1+m*cos(wi*t)]*cos(w*t);
plot(u);
-------------------------------------------------------------------
??? Error using ==> *
Inner matrix dimensions must agree.
Error in ==> e:\MATLAB6p5\work\Untitled1.m
On line 5 ==> u(t)=U*[1+m*cos(wi*t)]*cos(w*t);
请问大哥大姐,是因为程序错了还是matlab问题,挠头啊,重装了好几遍都是这样。
感恩戴德啊!!!
[此贴子已经被作者于2007-5-11 3:18:02编辑过]