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/12/25 01:58:46
matlab左除与右除A=[110001;0-11100;000-11-1;0-100-802;-10104000;00-4880]B=000-40-2020为什么在matlab中:>>A\Bans=

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,是不符合矩阵相乘的条件的