What is the difference between null(A) and null(A,'r') in Matlab ?

28 ビュー (過去 30 日間)
Nguyen Trong Nhan
Nguyen Trong Nhan 2014 年 1 月 4 日
編集済み: Wayne King 2014 年 1 月 4 日
What is the difference between null(A) and null(A,'r') in Matlab ? Could you give me an example ? thanks

採用された回答

Wayne King
Wayne King 2014 年 1 月 4 日
編集済み: Wayne King 2014 年 1 月 4 日
null(A,'r') does not give an orthonormal basis for the nullspace of A.
The help has a good example of this.
Orthonormal basis for nullspace of A
A = [
1 2 3
1 2 3
1 2 3];
Z = null(A);
norm(Z(:,1),2)
norm(Z(:,2),2)
Next try:
Zr = null(A,'r');
Note the above columns are not orthonormal, but
A*Zr
yields the zero matrix. So clearly both columns of Zr are elements of the nullspace of A. Note that the columns of Zr are linearly independent
rank(Zr)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by