Create a matrix with specif size
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Guilherme Lopes de Campos
le 23 Avr 2020
Commenté : Ameer Hamza
le 23 Avr 2020
Hi MATLAB community,
I have a array with the size (360x1), I would like to organize into a matrix with sizes (30 rows and 12 columns) using the data available on the array, organize sequencially. Which the function I can use for made this?
Thank you very much
Guilherme
0 commentaires
Réponse acceptée
Ameer Hamza
le 23 Avr 2020
Modifié(e) : Ameer Hamza
le 23 Avr 2020
See reshape()
B = reshape(A, 30, 12); % A is 360x1 and B is 30x12
It will organize the data column-wise, i.e., fill the first column, then second, and so on.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!