how to combine cells into a matrix

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...]

 채택된 답변

Kye Taylor
Kye Taylor 2013년 3월 19일
편집: Kye Taylor 2013년 3월 19일

1 개 추천

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{:}]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

질문:

2013년 3월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by