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 Exchange에서 Creating 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