Filtering data in a struct
34 views (last 30 days)
Show older comments
Jorge Zorrilla Prieto on 19 May 2020
Answered: Jalaj Gambhir on 22 May 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?
Jalaj Gambhir on 22 May 2020
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.
You can refer to an example here.
Hope this helps!
More Answers (0)
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!