MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   请教个问题:Matrix dimensions must agree (https://www.labfans.com/bbs/showthread.php?t=6439)

最最love 2009-02-17 23:50

请教个问题:Matrix dimensions must agree
 
>> r=200:1200;
>> y=cos(300*pi/r)^2-138/235*sin(300*pi/r)^2
??? Error using ==> mrdivide
Matrix dimensions must agree.
这个是什么原因阿 高人指点下 谢谢

slgu 2009-02-18 09:36

回复: 请教个问题
 
第二局改成
y=cos(300*pi./r).^2-138/235*sin(300*pi./r).^2
即可。


所有时间均为北京时间。现在的时间是 14:35

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