Column space of a matrix

71 ビュー (過去 30 日間)
a_Kumar16
a_Kumar16 2020 年 7 月 5 日
コメント済み: Rik 2022 年 5 月 19 日
Hi there,
I would like to find the column space of a matrix, but don't want the basis to be orthonormalised.
I tried the colspace function, but it seems to orthonormalise the basis.
For instance,
A = [1 0.2 3; -1 0.3 1; 2 -4 7];
colspace(sym(A))
Gives the answer:
[ 1, 0, 0]
[ 0, 1, 0]
[ 0, 0, 1]
However, in this particular example I would expect the first three columns of the matrix A as the answer if no orthonormalisation is done.
Any ideas how to achieve this?
Thanks and regards....

回答 (1 件)

Matt J
Matt J 2020 年 7 月 5 日
編集済み: Matt J 2020 年 7 月 5 日
You can use this FEX submission,
Example:
A =
1.0000 0.2000 3.0000 1.0000 0.2000 3.0000
-1.0000 0.3000 1.0000 -1.0000 0.3000 1.0000
2.0000 -4.0000 7.0000 2.0000 -4.0000 7.0000
>> licols(A)
ans =
1.0000 0.2000 3.0000
-1.0000 0.3000 1.0000
2.0000 -4.0000 7.0000
  2 件のコメント
othusitse molokele
othusitse molokele 2022 年 5 月 19 日
It gives wrong answer
Rik
Rik 2022 年 5 月 19 日
@othusitse molokele Can you give an example?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by