null
Compute an orthonormal basis for the nullspace of a matrix.
Syntax
N = null(A)
N = null(A, tol)
Inputs
- A
- The matrix whose nullspace basis is computed.
- tol
- A threshold for rounding off near-zero singular values. The default is the product of max(size(A)), the largest singular value, and eps.
Outputs
- N
- The right nullspace.
Example
A = [1,2,3,4;5,6,7,8;9,10,11,12;13,14,15,16];
N = null(A)
N = [Matrix] 4 x 2
-0.25887 0.48269
-0.01461 -0.83653
0.80584 0.22501
-0.53235 0.12884
Comments
The null space basis is not unique.