title: How to label plot having peaks in matlab
body: <p>I'm trying to label my XRD data which have peaks, and I want to label it from my array of data:</p>
  
  <pre><code>  peak label  
      ab
      ac
      ad
      cb
      bb
      ba
  </code></pre>
  
  <p>See picture below</p>
  
  <p><img src="https://i.stack.imgur.com/6pMJa.png" alt="enter image description here"></p>
  
  <p>I also want those labels to be vertically aligned on the top of the peaks.
  I tried the <code>findpeaks</code> function but it doesn't work.</p>