Summary of the cell
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
fereshte
am 6 Okt. 2014
Bearbeitet: Stephen23
am 6 Okt. 2014
Hi I wrote a code that Simplifies the data in cells. outputs of this code is 250 lines that every five line are owned by one person. I have to click each row then see 3 cell belong to 3 images and I have to click again to see its information. I want to see this information after click each row in window with 250 lines and not need to click again. please help me. thank you so much
2 Kommentare
Azzi Abdelmalek
am 6 Okt. 2014
Bearbeitet: Azzi Abdelmalek
am 6 Okt. 2014
The question is not clear for me
Akzeptierte Antwort
Azzi Abdelmalek
am 6 Okt. 2014
If your data looks like
a={{1:2 3:4 5:6};{7:8 9:10 11:12}}
Use
out=cell2mat([a{:}]')
Weitere Antworten (1)
Stephen23
am 6 Okt. 2014
Bearbeitet: Stephen23
am 6 Okt. 2014
If the vector sizes allow it, you could save your three numeric vectors together as one matrix, then this also removes the need to have one more level of nested cell arrays.
This means instead of
data_matrix = {{num_1x21,num_1x21,num_1x21};{num_1x21,...};...}
you can store it as
data_matrix = {num_3x21;num_3x21;...}
Even better would be to remove the cell array entirely:
data_matrix = num_Nx21
Keeping all the data in a numeric array has multiple advantages:
0 Kommentare
Siehe auch
Kategorien
Mehr zu NetCDF 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!