필터 지우기
필터 지우기

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 CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by