How to display the peak values ​​on the figure? [on hold]

When drawing a chart using MATLAB, I want the peaks to be labeled according to their amplitude. How to do that?
enter the description of the image here

If this is not possible, how can I label all the points plotted with their values?