MATLAB: How to insert a Data Cursor on a specif location from command

data cursorMATLABplot

Hello,
I have done some plots and I need to insert a Data Cursor to "highlight" the maximum of a curve.
Of course I could do it from the plot itself, but it would be better to do it automatically from the .m script.
Do you know how to d it ?
Thanks a lot, Bastien

Best Answer