Matrix Array Reshaping by fixed columns

조회 수: 2 (최근 30일)
Chris Dan
Chris Dan 2020년 6월 30일
댓글: madhan ravi 2020년 7월 1일
Hello, I have some matrices of 3x504 and 3x 3024
I want to reshape it to 6x252 and 15x252.
The length of column should remain constant that is 252. Rest of terms can come into rows..
I have attached the files
Does anyone know..?

답변 (2개)

madhan ravi
madhan ravi 2020년 6월 30일
reshape(matrix, [], 252)

Neeraj Rajpurohit
Neeraj Rajpurohit 2020년 7월 1일
Hi,
I think reshape(arr, [], columnSize) would reshare the array with number of columns as coulmnSize in each row, which is 252 in your case. The number of rows will vary depending upon the number of elements in the array.
  댓글 수: 1
madhan ravi
madhan ravi 2020년 7월 1일
How’s this different from the one I posted yesterday?

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

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by