transposing the contents of the cell

3 visualizaciones (últimos 30 días)
Alan
Alan el 11 de Sept. de 2011
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!

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by