Code is given in the comment section.
You can remove the x & y coordinate values from the figure using this line--
set(gca,'xtick',[],'ytick',[]);
Prerequisite:
Line styles in MATLAB
https://www.youtube.com/watch?v=9XYh0y-D8d0
How do I continuously read the mouse position as the mouse is moving, without a click event?
https://www.mathworks.com/matlabcentral/answers/97563-how-do-i-continuously-read-the-mouse-position-as-the-mouse-is-moving-without-a-click-event
Documentation of gca:
https://www.mathworks.com/help/matlab/ref/gca.html
#MATLABFun #ProgrammingFun #MATLAB #MATLABProject
Download
0 formats
No download links available.
Fun with Mouse Click | MATLAB Programming | NatokHD