フィルターのクリア

change array into matrix

5 ビュー (過去 30 日間)
Anusha
Anusha 2014 年 2 月 1 日
コメント済み: Anusha 2014 年 2 月 1 日
How to write a 4 values in rectangular grid a=[8 4 6 2]
it will become
a=
8 4
6 2

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 1 日
編集済み: Mischa Kim 2014 年 2 月 1 日
Use the reshape command.
b = reshape(a,2,2)
  3 件のコメント
Mischa Kim
Mischa Kim 2014 年 2 月 1 日
Is this another question or are you confirming that the command does what you need it to do?
Anusha
Anusha 2014 年 2 月 1 日
if i have a array with 50 numbers how it will be converted into rectangular matrix

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by