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/07/02 17:55:41
![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](/uploads/image/z/4514960-56-0.jpg?t=matlab%E5%B7%A6%E9%99%A4%E4%B8%8E%E5%8F%B3%E9%99%A4A%3D%5B1+1+0+0+0+1+%3B0+-1+1+1+0+0+%3B0+0+0+-1+1+-1+%3B0+-10+0+-8+0+2%3B-10+10+4+0+0+0+%3B0+0+-4+8+8+0%5DB+%3D000-40-2020%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9C%A8matlab%E4%B8%AD%EF%BC%9A%3E%3E+A%5CBans+%3D2.50781.1285-1.55172.6803-0.9561-3.6364%3E%3E+B%2FAError+using+%3D%3D%3E+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 =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,是不符合矩阵相乘的条件的