concatenate cell array of cell arrays
Afficher commentaires plus anciens
I have got this cell variable with 10 cell arrays. It is possible to horizontally concatenate them if the dimension is consistent but if not it gives me an error. How do i concatenate this cell arrays of unequal length?

Réponse acceptée
Plus de réponses (1)
Rishabh Rathore
le 7 Juin 2018
Modifié(e) : Rishabh Rathore
le 7 Juin 2018
0 votes
I'm assuming you want to retain the data of one cell array as a column.
A work around could be the following
- Find the length of the longest cell array
- append the empty cell to all the smaller cell arrays
- finally concatenate them, you may use horzcat for horizontal concatenation.
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!