how to combine cells into a matrix

2 vues (au cours des 30 derniers jours)
Sharen H
Sharen H le 19 Mar 2013
i have 427 cells and each cells has 3 element like
out{1}=[3 2 1]
out{2}=[33 24 11] etc...
i should combine this values together as one matrix in reverse order
out = [1 2 3 11 24 33...]

Réponse acceptée

Kye Taylor
Kye Taylor le 19 Mar 2013
Modifié(e) : Kye Taylor le 19 Mar 2013
Given your out varialble, try
out = fliplr([out{:}])
If you want to flip each row vector, then concatentate use
outNew = cellfun(@fliplr,out,'un',0)
out = [outNew{:}]

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays 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