Select rows based on a string in a cell
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
BN
am 12 Aug. 2020
Kommentiert: Star Strider
am 12 Aug. 2020
Hello,
I have a 1x19 cell. Each cell looks like this:
I want to store the precip values of WIN in each array. So the output is 1x19 cell with just WIN's precip.
I tried to do it like this:
for i = 1:numel(result_seasonal)
C_WIN{1, i} = result_seasonal{1,i}(strcmp(result_seasonal{1,i}.seasons,'WIN'),:);
end
But it not works and result is 1x19 cell with empty arrays, is there anything that I'm didn't considered?
Thank you all
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!