Two simple functions that compute the NULL space and ORTHOGONAL basis of a sparse matrix using QR decomposition with row permutation.
For FULL matrices, Matlab stock functions NULL and ORTH use SVD decomposition, which is not available for SPARSE matrix.
Since Matlab 2009B (?), QR decomposition is available for sparse matrices, which can be used to estimate the orthogonal basis without converting matrix in FULL.
Bruno Luong (2021). Sparse null space and orthogonal (https://www.mathworks.com/matlabcentral/fileexchange/27550-sparse-null-space-and-orthogonal), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!