Filtering data in a struct
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jorge Zorrilla Prieto
am 19 Mai 2020
Beantwortet: Jalaj Gambhir
am 22 Mai 2020
I have the following struct: Now I wold like to filter the the data so that I have for each altitude and sensor name(there are 3) the minimum value of the Diameter. Is that possible?
Akzeptierte Antwort
Jalaj Gambhir
am 22 Mai 2020
Hi,
You can convert the struct to table, and then use findgroups to identify the groups based on Altitude and Sensor. After the new table with grouped data is formed, you can use splitapply to find the minimum diameter.
Hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures 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!