Parsing a cell array
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 11 Sep. 2014
temp = permute(cell2mat(permute(Data,[1,3,2])),[3,2,1]);
1 Kommentar
R J
am 11 Sep. 2014
Kategorien
Mehr zu String Parsing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!