MATLAB: Labelling peaks on a graph

MATLAB

I have a plot which contains many peaks(as peaks in a spectrum). I want to label some of these peaks as 'xyz', 'amc' etc. What should i do?

Best Answer

Use the findpeaks (link) or islocalmax (link) function, and the text (link) function.
Related Question