title: How to use MATLAB's data cursor via my code
body: <p>I have written my script in Matlab to generate <code>FFT</code> for a simple DTMF dial tone. Here is how my plot currently looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/itacl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/itacl.png" alt="enter image description here"></a></p>
  
  <p>However, I would like to be able to add MATLAB's <code>data cursor</code> feature at the two maxima points as  depicted below:</p>
  
  <p><a href="https://i.stack.imgur.com/LeYe3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LeYe3.png" alt="enter image description here"></a></p>
  
  <p>How can I do that through my code (not via plot window)?</p>