how to split a column into many equal columns

조회 수: 3 (최근 30일)
nadia nadi
nadia nadi 2016년 10월 14일
답변: Image Analyst 2016년 10월 14일
dear
I have a column of say 200x2 and I need to split into four columns of 50x2 to create a matrix size 50x8. I need to write it in general because I have many cases like a column of 1000x2 and so on. can anyone give me an idea.
many thanks,
Nadia,

채택된 답변

Image Analyst
Image Analyst 2016년 10월 14일
Try this:
newMatrix = reshape(originalMatrix, [], desiredNumberOfColumns);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by