Re-arrange vectors from rows to columns

2 ビュー (過去 30 日間)
Francisco Anaya
Francisco Anaya 2019 年 3 月 5 日
編集済み: Stephen23 2019 年 3 月 5 日
I have 3 vector in rows as follows:
A = 1 1 1 1 1 1 1 1 1 1
B= 2 2 2 2 2 2 2 2 2 2
C= 3 3 3 3 3 3 3 3 3 3
I need only one vector with A, B and C as columns as follows:
D=
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
1 2 3
Thank you!

採用された回答

Raj
Raj 2019 年 3 月 5 日
A = [1 1 1 1 1 1 1 1 1 1];
B= [2 2 2 2 2 2 2 2 2 2 ] ;
C= [3 3 3 3 3 3 3 3 3 3];
A=A';
B=B';
C=C';
D=[A B C]
  2 件のコメント
Francisco Anaya
Francisco Anaya 2019 年 3 月 5 日
thank you!
Stephen23
Stephen23 2019 年 3 月 5 日
編集済み: Stephen23 2019 年 3 月 5 日
Note that it is a good habit to learn to use basic transpose .' rather than complex conjugate transpose '

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by