MATLAB: How to Customize Data Cursor for scatter plot

scatter plot

I would like to add more information on to specify data cursor on each scatter plot point, please advice.

Best Answer

Customizing Data Cursor Text
You can customize the text displayed by the data cursor using the datacursormode function. Use the last two items in the Data Cursor context menu to for this purpose:
. Edit Text Update Function — Opens an editor window to let you modify the function currently being used to place text in datatips
. Select Text Update Function — Opens an input file dialog for you to navigate to and select a MATLAB® file to use to format text in datatips you subsequently create