The fastest way to find local minimum

Illustration
Farrahakhtar - 2021-02-10T11:08:16+00:00
Question: The fastest way to find local minimum

What is the most efficient/fastest way to find the circled local minimum below, the lowest minima between two highest peaks? The graph was created by plot(x,y).    

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

Invert your signal
 
 
invertedSignal = max(signal(:)) - signal;
Now valleys will be peaks. Then call find peaks.

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!