Filtering data in a struct

21 次查看(过去 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?
  1 个评论
Mehmed Saad
Mehmed Saad 2020-5-19
Convert structure to table using struct2table It is easy to use for such kind of purpose

请先登录,再进行评论。

采纳的回答

Jalaj Gambhir
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.
You can refer to an example here.
Hope this helps!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by