MATLAB: Marking the peak of a plot automatically without having to click on it
plotting
Hi,
Is it possible to mark the peak of a plot automatically with a command without having to to mark on each plot.
Best Answer
If you have the Signal Processing Toobox, I suggest thefindpeaks function with two outputs so that you get the value of the function at the peak as well as the index of yourx-variable at which the peak occurs.
Best Answer