フィルターのクリア

convert matrix and horizontally catenate

4 ビュー (過去 30 日間)
Damith
Damith 2014 年 7 月 16 日
コメント済み: Damith 2014 年 7 月 16 日
Hi,
I need to convert this matrix A to
A=[1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24];
A = 1 2 3 4 5 6 7 8 9 10...24;
How can I perform this in matlab? Any help is appreciated.
Thanks.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 16 日
編集済み: Azzi Abdelmalek 2014 年 7 月 16 日
A=A'
A=A(:)'
Or
reshape(A',1,[])
  1 件のコメント
Damith
Damith 2014 年 7 月 16 日
Thanks.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by