Need help with extracting data from n-dimension cell matrix
Ältere Kommentare anzeigen
Hi, I have a 76x102x5 cell matrix. I would like to create a single array of data from each index for n-dimensions. For example,
for k = 1:5
array = cell{1,1,k};
end
output = [ 1 2 3 4 5 ];
so its only the numbers from the same index but in different dimensions.
4 Kommentare
Azzi Abdelmalek
am 11 Mär. 2014
Not clear for me
dpb
am 11 Mär. 2014
Me neither but wonder if wouldn't be simpler if OP used cell2mat then proceeded...
Walter Roberson
am 11 Mär. 2014
What shape of data is stored in each element of the cell array? Is it certain to be consistent?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Indexing 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!