MATLAB编程 逆矩阵怎么表示
发布网友
发布时间:2022-04-30 17:03
我来回答
共4个回答
热心网友
时间:2022-06-28 02:14
大家说的都对,我补充下:
1、当a是方阵,用inv(a)来计算矩阵的逆;
2、当a是非方阵时,用pinv(a)求得特殊的逆矩阵,叫广义逆矩阵。
热心网友
时间:2022-06-28 02:14
矩阵A的逆矩阵B表示为B=inv(A); 其中A为非奇异矩阵
热心网友
时间:2022-06-28 02:15
inv或者A^(-1)
热心网友
时间:2022-06-28 02:15
M-Lint has detected a call to inv in a multiplication operation.
The inverse of a matrix is primarily of theoretical value, and rarely
finds any use in practical computations. Never use the inverse of a
matrix to solve a linear system Ax=b with x=inv(A)*b,
because it is slow and inaccurate.
Suggested Action
Instead of multiplying by the inverse, use matrix right division (/)
or matrix left division (\). That is:
Replace inv(A)*b with A\b
Replace b*inv(A) with b/A
大致意思是,不要用inv求逆(),而是直接用左除\ 或者右除 / 计算Ax=b 中的x