Reshape matrix (Special case)

조회 수: 1 (최근 30일)
bashar halleem
bashar halleem 2020년 6월 5일
댓글: bashar halleem 2020년 6월 5일
Have a matrix (360,1), I want to put every 3 elements in a row, the next 3 elements in the second row in new matrix and so on to be the new matrix (120,3).

채택된 답변

KSSV
KSSV 2020년 6월 5일
A = rand(360,1) ;
iwant = reshape(A,3,[])';
  댓글 수: 3
bashar halleem
bashar halleem 2020년 6월 5일
Thanks Stephen
bashar halleem
bashar halleem 2020년 6월 5일
Thanks kssv

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

추가 답변 (0개)

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by