MATLAB: How to find both of the local minimums in this plot

minimumplotSignal Processing Toolbox

Hi All
just having the vectors of the axes , how can I find the minimums ?

Best Answer

If you have the Signal Processing Toolbox, invert your data and call findpeaks().
y = max(y) - y;
[peaks, indexes] = findpeaks(y);