?? nulbasis.m
字號:
function N = nulbasis(A)
% NULBASIS(A) is a matrix whose columns form a basis
% for the null space of A. The basis is obtained from
% the reduced row echelon form of A.
[R,jp] = rref(A);
[m,n] = size(A);
r = length(jp);
nmr = n - r;
N = zeros(n,nmr);
kp = other(jp,n);
% Construct N, the matrix of basis vectors
for q = 1:nmr
N(kp(q),q) = 1;
N(jp,q) = -R(1:r,kp(q));
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -