Convert each cell to 4D
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How to convert each cell to 4D? As in the form 11x6000x1x830 for the 1st cell and likewise for the rest.
0 Kommentare
Antworten (1)
the cyclist
am 21 Dez. 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.
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!