Filtering data in a struct
27 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/294290/image.png)
采纳的回答
Jalaj Gambhir
2020-5-22
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!