Grouping rows into different matrices
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
omar najjar
le 4 Mar 2021
Modifié(e) : Stephen23
le 4 Mar 2021
I have a matrix of 2000*512 and I want to assign each 10 to a matric so with total of 200 matrices
G1 = M(1:10 , :)
G2 = M(11:20, :) and so on
How can I do it in more professional way since I need to reach to G200
Please Help
1 commentaire
Réponse acceptée
KALYAN ACHARJYA
le 4 Mar 2021
Modifié(e) : KALYAN ACHARJYA
le 4 Mar 2021
G=mat2cell(M,10*ones(1,2000/10))
All are individual matrices, you have to save matrices in the cell array (easiest way)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Types 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!