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.

 채택된 답변

Star Strider
Star Strider 2023년 6월 30일

0 개 추천

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

William
William 2023년 6월 30일
Thanks! This helps a lot
Star Strider
Star Strider 2023년 6월 30일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2023년 6월 30일

댓글:

2023년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by