Effacer les filtres
Effacer les filtres

Matrix Array Reshaping by fixed columns

2 vues (au cours des 30 derniers jours)
Chris Dan
Chris Dan le 30 Juin 2020
Commenté : madhan ravi le 1 Juil 2020
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..?

Réponses (2)

madhan ravi
madhan ravi le 30 Juin 2020
reshape(matrix, [], 252)

Neeraj Rajpurohit
Neeraj Rajpurohit le 1 Juil 2020
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 commentaire
madhan ravi
madhan ravi le 1 Juil 2020
How’s this different from the one I posted yesterday?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by