MATLAB: The fastest way to find local minimum

graphplotSignal Processing Toolbox

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).

Best Answer

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