|
⇤ ← Revision 1 as of 2026-02-07 04:54:06
Size: 469
Comment: Initial commit
|
Size: 470
Comment: Relink
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| This is effectively what [[MATLAB/Svd|pinv]] does. | This is effectively what [[MATLAB/Pinv|pinv]] does. |
MATLAB svd
The svd function calculates the SVD decomposition of any matrix.
Contents
Usage
To solve the problem Ax = b for any size matrix A, try:
[U, S, V] = svd(A); S_inv = diag(1./diag(S)); x = V * S_inv * U' * b;
This is effectively what pinv does.
The original A can be returned by U*S*V'.
