axes coordinates for plotting figure

1 view (last 30 days)
hi all,
I have a curve function plotted in GUI axes. so is there is a way that can get the coordinates of the mouse in the box of the axes. so user can know the coordinates of curve by moving the mouse on the curve.
Is there is a ways in MATLAB to do such a thing ?? your help really appreciated... thanks

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 23 Sep 2012
Edited: Azzi Abdelmalek on 23 Sep 2012
in your GUI editor
  1. click on "toolbar editor"
  2. then add a "data cursor" by double click
you can add other objects: zoom in zoom out, legend, colorbar, ...
  1 Comment
Samer Husam
Samer Husam on 23 Sep 2012
thanks a lot Mr. Azzi.. its exactly what I am looking for. thanks again for this answer

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!