MATLAB: How to find the bottom peaks in the graph

mathematicsoptimizationSignal Processing Toolboxsimulation

bottom peaks not top peaks of the image file

Best Answer

[locs,idxs]=findpeaks(-y) %EDITED

If y is the function of the plot -y will give the minimum of the function.