Matlab's PINV(X) computes the Moore-Penrose generalized inverse of X, which is unique. Instead, GINV(X) computes any g-inverse of X. In fact, GINV returns a different g-inverse in each draw.
Cite As
Luis Frank (2026). GINV(X) (https://in.mathworks.com/matlabcentral/fileexchange/22687-ginv-x), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12.1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Inverse and determinant of square matrix, inv_det_0(A)
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
