Parsing a cell array
Mostrar comentarios más antiguos
Hi there,
I have a 24x4 cell called "Data" where each cell contains an array of 2x2000 double. I would like to parse the cell in the following way:
- The 1x2000 double in cell in Data{1,1}(1,:), Data{1,2}(1,:), Data{1,3}(1,:), and Data{1,4}(1,:) are all parsed into its in own "temp" array so that "temp(:,:)" contains all 4 1x2000 doubles from those 4 cells. The plan is to use a loop so that I can parse the entire 24x4 cell in this way.
Any help would be appreciated.. Thank you!
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 11 de Sept. de 2014
temp = permute(cell2mat(permute(Data,[1,3,2])),[3,2,1]);
1 comentario
R J
el 11 de Sept. de 2014
Categorías
Más información sobre String Parsing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!