converting numbers to matrix(matrix formation)

조회 수: 3 (최근 30일)
tina jain
tina jain 2015년 4월 28일
답변: Roger Stafford 2015년 4월 28일
If I am having some numbers, e.g
x=[ 12 12 12 2 2 2 2 3 3 ];
and now I want to convert into a matrix of 3 * 3.
Which MATLAB function is suitable for this?

채택된 답변

Roger Stafford
Roger Stafford 2015년 4월 28일
Use the 'reshape' function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by