How do I make specific intervalls on a graph with 2 'dips'

1 次查看(过去 30 天)
Hello
I have a list of different graphs that are either straight, straight with a dip, or straight with 2 dips. What i need to do is close in these dips inside an interval IF they exist. The line isn't neccessairly straight but 'vibrates'. I initially just checked if the min value is significantly lower than the max value, but this falls apart if the graph has 2 dips.

回答(1 个)

Tala
Tala 2022-4-6
编辑:Tala 2022-4-6
islocalmin would do the job! If your data is sharable, I will take a look. You probably need to smooth your data before using islocalmin.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by