Filtering data in a struct

25 ビュー (過去 30 日間)
Jorge Zorrilla Prieto
Jorge Zorrilla Prieto 2020 年 5 月 19 日
回答済み: Jalaj Gambhir 2020 年 5 月 22 日
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 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by