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=11662)

youcao0229 2010-05-31 17:38

矩阵相乘问题
 
B={-45.13 1.00;78.205 1.00;111.84 1.00;147.18 1.00;184.82 1.00};
c=B';
d=c*B;
系统出错:??? Error using ==> *
Function '*' is not defined for values of class 'cell'.
实在不明白哪儿有问题了

guohf 2010-06-26 10:53

回复: 矩阵相乘问题
 
好象应是
d=c.*B;

c后有一个点

speedfire 2010-07-13 22:50

回复: 矩阵相乘问题
 
=[-45.13 1.00;78.205 1.00;111.84 1.00;147.18 1.00;184.82 1.00];
{} > []

matlabmichael 2010-07-14 11:09

回复: 矩阵相乘问题
 
{}变成[],注意矩阵的表示。

fanstars 2010-08-13 18:02

回复: 矩阵相乘问题
 
矩阵相乘问题用点乘解决就行

hahaha 2010-10-11 12:20

回复: 矩阵相乘问题
 
是四楼说的问题,矩阵是用[]括起来的,不是{}


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

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