Borrar filtros
Borrar filtros

Need to count projections from a graph

4 visualizaciones (últimos 30 días)
William
William el 30 de Jun. de 2023
Comentada: Star Strider el 30 de Jun. de 2023
So I have this graph and I want to take the experation and insperation values from it. Basically the different peaks and minimums values, anyone have a good way for how I would do that? It's not immediatly obvious to me. Let me know if I need to explain more.

Respuesta aceptada

Star Strider
Star Strider el 30 de Jun. de 2023
It depends on what information you want. The red line appears to interpret the results of the image behind it, so it would likely be best to just use it (although I do not know what it actually plots).
To get the peaks and valleys and their values, use either findpeaks (on the orignal and negated vector) or islocalmax and islocalmin to get the same information. To get the areas, use cumtrapz or trapz depending on the information you want.
See the documentation on the various functions that I link to here for details on using them.
  2 comentarios
William
William el 30 de Jun. de 2023
Thanks! This helps a lot
Star Strider
Star Strider el 30 de Jun. de 2023
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by