What is the fastest way to convert mat to cell for the following algorithm?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jab
le 8 Août 2016
Réponse apportée : Walter Roberson
le 8 Août 2016
I have a matrix of 256*256*57 3D matrix. I wanted to convert to cell of 1X5 and the first cell should contain 256*256 matrix, 2nd and 3rd cell should contain 256*256*10 , 3rd and 4th cell should contain 256*256*18. Could anyone please help me?
Thanks
0 commentaires
Réponse acceptée
Walter Roberson
le 8 Août 2016
output = mat2cell(YourMatrix, size(YourMatrix,1), size(YourMatrix,2), [1, 10, 10, 18, 18]);
0 commentaires
Plus de réponses (1)
dpb
le 8 Août 2016
Probably mat2cell altho I've not timed alternatives...
c=mat2cell(a,256,256,[1 10 10 18 18]);
0 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!