Labelling peaks on a graph

103 views (last 30 days)
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?

Accepted Answer

Star Strider
Star Strider on 19 Feb 2019
Use the findpeaks (link) or islocalmax (link) function, and the text (link) function.
  2 Comments
Poornima Balachandran
Poornima Balachandran on 20 Feb 2019
Thanks!!
The text function was what i wanted.
Star Strider
Star Strider on 20 Feb 2019
As always, my pleasure!

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!