Convert each cell to 4D

1 visualización (últimos 30 días)
Joeli Rakaria
Joeli Rakaria el 21 de Dic. de 2020
Comentada: Joeli Rakaria el 22 de Dic. de 2020
How to convert each cell to 4D? As in the form 11x6000x1x830 for the 1st cell and likewise for the rest.

Respuestas (1)

the cyclist
the cyclist el 21 de Dic. de 2020
The best method to do this might depend on how generalizable you need this to be to other cell arrays (with different internal array sizes), but this will work for your cell array:
c2 = cellfun(@(x)reshape(x,11,6000,1,[]),c,'UniformOutput',false);
where c is your input cell array.
  1 comentario
Joeli Rakaria
Joeli Rakaria el 22 de Dic. de 2020
Thanks for your help. Works well

Iniciar sesión para comentar.

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by