transform 1x12 cell to 3x4 cell
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alberto Acri
le 23 Juin 2023
Réponse apportée : Dyuman Joshi
le 23 Juin 2023
Hi! I have a cell like this:
A = {'5','11','69','85','114','169','188','196','250','258','267','295'};
I want to transform it like this:
A = {'5','11','69','85';'114','169','188','196';'250','258','267','295'};
0 commentaires
Réponse acceptée
Dyuman Joshi
le 23 Juin 2023
Use reshape
A = {'5','11','69','85','114','169','188','196','250','258','267','295'}
A = reshape(A,4,[])'
0 commentaires
Plus de réponses (0)
Voir également
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!