Which vectors we can use to form a basis of the given space

32 ビュー (過去 30 日間)
aliza mustafa
aliza mustafa 2022 年 8 月 30 日
回答済み: Matt J 2022 年 8 月 30 日
Hi everyone,
I am learning linear algebra in MATLAB. I am having my matrix A:
A = [1,0,2,3; 4,-1,0,2; 0,-1,-8,-10];
I am supposed to find the vectors that form a basis of the given space. As it is clear, the given space will be 3. So, when I converted it to reduce echelon form using rref(A) I got the following matrix:
rref(A)
ans =
1 0 2 3
0 1 8 10
0 0 0 0
Now, I am confused that which vector should I choose to form a basis of the given space? Should it be Basis for col(A) or Basis for row(A)? I am so confused at it. I will highly appreciate any help. Thanks in advance

採用された回答

Matt J
Matt J 2022 年 8 月 30 日
One solution is to use orth:
A = [1,0,2,3; 4,-1,0,2; 0,-1,-8,-10];
basis=orth(A)
basis = 3×2
-0.2710 -0.1940 -0.1305 -0.9630 0.9537 -0.1869

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by