MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求解线性方程组出现missing matlab operator (https://www.labfans.com/bbs/showthread.php?t=14287)

gjrseason 2012-02-11 14:25

求解线性方程组出现missing matlab operator
 
for m=0:1
for n=0:1
for o=0:1
for p=0:1
for q=0:1
w=[0 m m 0 0 0 0 0 0 0;0 -3 m 0 0 0 0 0 0 0;0 0 -2 0 0 0 0 0 0 0;0 0 0 0 n n 0 0 0 0;0 0 n 0 -3 0 0 n 0 0;0 0 0 0 0 -1 0 n 0 0;0 0 0 0 0 0 0 p 0 0;0 0 0 0 0 n+p 0 -5 0 0;0 0 0 0 0 0 0 0 -2 q;0 0 0 0 0 0 0 0 q -1];
v=[0 -m -m 4-o-p -o 0 2-o -2p-n -q 0]';
y=w\v
end
end
end
end
end

v矩阵有问题
??? v=[0 -m -m 4-o-p -o 0 2-o -2p-n -q 0]';
|
Error: Missing MATLAB operator.

请问是哪里有问题呢?谢谢 ……


所有时间均为北京时间。现在的时间是 11:15

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