Matrix Array Reshaping by fixed columns
显示 更早的评论
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
2020-6-30
reshape(matrix, [], 252)
Neeraj Rajpurohit
2020-7-1
0 个投票
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
2020-7-1
How’s this different from the one I posted yesterday?
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!