how to concatenate all the cell values horizondally in matlab
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a cell array
{[1;1;1] [2;2] [3;3;3;3] }
I want to convert the cell array into a single vector
[1,1,1,2,2,3,3,3,3]
Kindly help.
0 commentaires
Réponse acceptée
per isakson
le 3 Avr 2016
Modifié(e) : per isakson
le 3 Avr 2016
One way
>> cac = {[1;1;1] [2;2] [3;3;3;3] };
>> cat( 1, cac{:} )'
ans =
1 1 1 2 2 3 3 3 3
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!