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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by