matlab左除与右除A=[1 1 0 0 0 1 ;0 -1 1 1 0 0 ;0 0 0 -1 1 -1 ;0 -10 0 -8 0 2;-10 10 4 0 0 0 ;0 0 -4 8 8 0]B =000-40-2020为什么在matlab中:>> A\Bans =2.50781.1285-1.55172.6803-0.9561-3.6364>> B/AError using ==> mldivideMatrix dimensions must
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/18 01:23:00
matlab左除与右除A=[1 1 0 0 0 1 ;0 -1 1 1 0 0 ;0 0 0 -1 1 -1 ;0 -10 0 -8 0 2;-10 10 4 0 0 0 ;0 0 -4 8 8 0]B =000-40-2020为什么在matlab中:>> A\Bans =2.50781.1285-1.55172.6803-0.9561-3.6364>> B/AError using ==> mldivideMatrix dimensions must
matlab左除与右除
A=[1 1 0 0 0 1 ;0 -1 1 1 0 0 ;0 0 0 -1 1 -1 ;
0 -10 0 -8 0 2;-10 10 4 0 0 0 ;0 0 -4 8 8 0]
B =
0
0
0
-40
-20
20
为什么在matlab中:
>> A\B
ans =
2.5078
1.1285
-1.5517
2.6803
-0.9561
-3.6364
>> B/A
Error using ==> mldivide
Matrix dimensions must agree.
这是什么情况
matlab左除与右除A=[1 1 0 0 0 1 ;0 -1 1 1 0 0 ;0 0 0 -1 1 -1 ;0 -10 0 -8 0 2;-10 10 4 0 0 0 ;0 0 -4 8 8 0]B =000-40-2020为什么在matlab中:>> A\Bans =2.50781.1285-1.55172.6803-0.9561-3.6364>> B/AError using ==> mldivideMatrix dimensions must
A为6*6的方阵,其逆阵C也是6*6,而B为6*1的向量,A\B=C*B,符合矩阵相乘的行列条件,反过来B/A=B*C,是不符合矩阵相乘的条件的