MATLAB编程 逆矩阵怎么表示

2024-12-31 11:56:07
推荐回答(4个)
回答1:

大家说的都对,我补充下:

1、当a是方阵,用inv(a)来计算矩阵的逆;

2、当a是非方阵时,用pinv(a)求得特殊的逆矩阵,叫广义逆矩阵。

回答2:

矩阵A的逆矩阵B表示为B=inv(A); 其中A为非奇异矩阵

回答3:

inv或者A^(-1)

回答4:

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