Split a larger matrix into smaller matrices
Afficher commentaires plus anciens
Hello All,
I have a [256 x 5 x 2000] matrix. I want to split this matrix into 5 [256 x 1 x 2000] matrices. Tried using mat2cell but it returns an error stating number of dimensions must match.
Could anyone please help me with this?
Thanks, \Kashif
Réponse acceptée
Plus de réponses (1)
Andrei Bobrov
le 17 Mar 2016
C = num2cell(M,[1 3]);
5 commentaires
Kash022
le 17 Mar 2016
Andrei Bobrov
le 17 Mar 2016
What is K? It is C?
Kash022
le 17 Mar 2016
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!