필터 지우기
필터 지우기

transposing the contents of the cell

조회 수: 7 (최근 30일)
Alan
Alan 2011년 9월 11일
hi, I have a 3x1 cell array that contains the following cells:
[1x2 double]
[1x2 double]
[1x2 double]
how can I transpose the contents of the cell to the main cell array is as follows:
[2x1 double]
[2x1 double]
[2x1 double]
any help would be appreciated!

채택된 답변

Lucas García
Lucas García 2011년 9월 11일
Let C be your cell. You can do the following:
C = cellfun(@transpose,C,'un',0);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by