フィルターのクリア

How to change array to be a special matrix ..??

1 回表示 (過去 30 日間)
Noru
Noru 2013 年 1 月 29 日
Let's try with me to solve this problem.
How to change array like example below
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ]
into
Ar2Mat = [ 2 0.5
6 7.3
15 5.6
4 3.3
12 8.2]
i've already tried and just make the matrix like this
Ar2Mat = [ 2 5.6
0.5 4
6 3.3
7.3 12
15 8.2]
Does anyone has the solution..?
thanks

採用された回答

José-Luis
José-Luis 2013 年 1 月 29 日
編集済み: José-Luis 2013 年 1 月 29 日
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ];
Ar2Mat = reshape(Ar2Mat,2,5)'
Are you taking the same course as Vishnu?
  1 件のコメント
Noru
Noru 2013 年 1 月 30 日
No, I don't taking the same course as Vishnu And thanks for your answer.. :)

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by