A fast way of reshaping a cell array with elements with different sizes
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mnr
el 25 de Jun. de 2015
Comentada: Mnr
el 26 de Jun. de 2015
Hello all,
I have a cell array in this form:
a=[1x16x16 double] [1x8x16 double] [1x4x16 double] [1x2x16 double]
I am looking for a fast way to reshape each element such that I get
a=[16x16 double] [8x16 double] [4x16 double] [2x16 double].
I would appreciate your help!
0 comentarios
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 25 de Jun. de 2015
Editada: Walter Roberson
el 25 de Jun. de 2015
b = cellfun(@squeeze, a, 'uniform', 0);
3 comentarios
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!