Filtering data in a struct

19 visualizaciones (últimos 30 días)
Jorge Zorrilla Prieto
Jorge Zorrilla Prieto el 19 de Mayo de 2020
Respondida: Jalaj Gambhir el 22 de Mayo de 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?
  1 comentario
Mehmed Saad
Mehmed Saad el 19 de Mayo de 2020
Convert structure to table using struct2table It is easy to use for such kind of purpose

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by