matlab矩阵相乘的问题,4*1的A乘以4*4的B乘以1*4的C为什么会错!
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/10/07 02:37:20
matlab矩阵相乘的问题,4*1的A乘以4*4的B乘以1*4的C为什么会错!
B =
51 51 51 52
52 52 52 52
53 54 53 53
55 55 54 54
A =
-0.0329 0.2359 0.9259 -0.1290
C =
-0.0101
0.9998
0.0105
-0.0001
A*B*C的话会有错误
Error using *
MTIMES is not fully supported for integer classes.At least one input must be scalar.
To compute elementwise TIMES,use TIMES (.*) instead.
B =
51 51 51 52
52 52 52 52
53 54 53 53
55 55 54 54
A =
-0.0329 0.2359 0.9259 -0.1290
C =
-0.0101
0.9998
0.0105
-0.0001
A*B*C的话会有错误
Error using *
MTIMES is not fully supported for integer classes.At least one input must be scalar.
To compute elementwise TIMES,use TIMES (.*) instead.
你那个B是个int型的数组,在进行运算前,需要转换成double型数组.
也就是在相乘之前加上:
B=double(B);
也就是在相乘之前加上:
B=double(B);
matlab矩阵相乘的问题,4*1的A乘以4*4的B乘以1*4的C为什么会错!
Matlab矩阵相乘的问题
matlab 矩阵相乘的问题
(a+b-c)的2m次方乘以(a-b-c)的2m+1次方乘以(c-a-b)的4m+3次方乘以(c+b-a)的m+1次方,
如何用matlab计算一个4*4的矩阵和4*1的矩阵相乘
a乘以5/6等于b乘以3/2等于c乘以4/5等于d乘以3/8,请从大到小的顺序排列abcd这四个数
矩阵A的逆矩阵乘以矩阵B和矩阵B乘以矩阵A的逆矩阵 结果相等吗
matlab a矩阵的各列乘以不同系数
matlab 一个n*n矩阵[A]分别乘以一个1*n矩阵[B]的列,得到n个n*n矩阵,如何自动完成?
已知分块矩阵M=(o a/b c)证明M的行列式=(-1)^mn次方乘以a的行列式乘以b的行列式
MATLAB中两个矩阵相乘的问题
MATLAB中矩阵相乘的问题