Effacer les filtres
Effacer les filtres

how to convert cell to array

5 vues (au cours des 30 derniers jours)
RuiQi
RuiQi le 5 Déc 2016
Réponse apportée : Jan le 5 Déc 2016
I have 1 x 7 cell. Each cell has 20000 x 1 array. How do I take 1st column and 3rd 4th 5 7 7 column ? So result becomes 20000 x 5 array ?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 5 Déc 2016
Modifié(e) : Azzi Abdelmalek le 5 Déc 2016
If v is your cell array
out=cell2mat(v([1 3 4 5 7 ]))

Plus de réponses (1)

Jan
Jan le 5 Déc 2016
out = cat(2, v{[1 3 4 5 7]});

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by