Simple function to transform matrix?

조회 수: 1 (최근 30일)
Jonathan
Jonathan 2013년 9월 17일
Hi There,
I have a large matrix, 622080x5, elements that I'd like to have dimensions of 4320x720. Each line would be wrapped by taking elements (2,1:5), (3,1:5) and placing them in the new matrix as elements (1,6:10) and (1,11:15). I'm sure there's a simple function for this, but I'm having a hard time finding anything, since "transform matrix" tends to refer to different sorts of computations.
Thanks, Jonathan
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 9월 17일
What about the other 705 columns ?

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 17일
편집: Azzi Abdelmalek 2013년 9월 18일
Edit
v=rand(622080,5);% your array
out=reshape(v',720,[])';
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 17일
Look at edit
Jonathan
Jonathan 2013년 9월 18일
Thanks, that's the function.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by