Use this function to read multiple line data values with the same x coordinates. To use it properly, follow the following steps:
1. Plot the figure with mutiple lines;
2. Activate the Datatip in the figure toolbar;
3. In the blank area of the axes, click the right button of the mouse and choose the " Choose the text refreshing function" in the context menu, then choose MyCursorLineDataCallback.m as the refreshing function;
4. Click and drag the datatip, the data at the current x point will refresh simultaneously with the legend to distinguish each line data.
Mr. Zhu (2020). Cursor data (https://www.mathworks.com/matlabcentral/fileexchange/65105-cursor-data), MATLAB Central File Exchange. Retrieved .