Obtain the transposed matrix from 2 vectors (MATLAB)

1 回表示 (過去 30 日間)
Afluo Raoual
Afluo Raoual 2022 年 6 月 4 日
編集済み: Matt J 2022 年 6 月 4 日
Dear,
I have these two vectors:
c=[1 0 0 0 0 1 1 0 1 0 0 0]
s=[0 1 0 1 1 1]
where s=c*(transposed H)
H here is a matrix
I tried to obtain the transposed matrix HT like that:
c=[1 0 0 0 0 1 1 0 1 0 0 0];
s=[0 1 0 1 1 1];
HT=s/c;
But I got an error (Matrix dimensions must agree)
How can I obtain the transposed matrix please !

回答 (1 件)

Matt J
Matt J 2022 年 6 月 4 日
編集済み: Matt J 2022 年 6 月 4 日
You can do a pseudo-inversion with,
c=[1 0 0 0 0 1 1 0 1 0 0 0];
s=[0 1 0 1 1 1];
HT=c\s;
c*HT-s
ans = 1×6
0 0 0 0 0 0
however, you have far more unknowns than equations, so there is no hope of uniquely recovering the original matrix.

カテゴリ

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