cell array of nested cells

2 vues (au cours des 30 derniers jours)
ludvikjahn
ludvikjahn le 26 Fév 2015
Commenté : ludvikjahn le 26 Fév 2015
goo morning, I have a cell array made of cells of dimension either n X 218 or empty cells, like that:
{20388x218 cell}
{20194x218 cell}
{20050x218 cell}
{11704x218 cell}
{}
{}
{}
{}
{}
{}
and I want to concatenate them in order to get a cell array (n X 218) where n is the sum of 20388,20194, etc.,possibly without a loop.
Any ideas?

Réponse acceptée

Guillaume
Guillaume le 26 Fév 2015
It's simply:
vertcat(cellarray{:});
  1 commentaire
ludvikjahn
ludvikjahn le 26 Fév 2015
I love you

Connectez-vous pour commenter.

Plus de réponses (1)

Andrei Bobrov
Andrei Bobrov le 26 Fév 2015
let yourcellarray - your array
out = cat(1,yourcellarray{:});

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!

Translated by