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 日

0 投票

Use the reshape command.
b = reshape(a,2,2)

3 件のコメント

Anusha
Anusha 2014 年 2 月 1 日
This is ok.. how it will generate multiple numbers.. and the numbers are arranged into rectangular grid
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 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2014 年 2 月 1 日

コメント済み:

2014 年 2 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by