Effacer les filtres
Effacer les filtres

displaying values

1 vue (au cours des 30 derniers jours)
FIR
FIR le 24 Fév 2012
I have a sine wave,in which i have take positive curve(upper curve), now if i click anywhere in that graph i want to display values of x,y,using gui ,please help

Réponse acceptée

Oleg Komarov
Oleg Komarov le 24 Fév 2012
You can use datacursormode to display datatips.
Check the examples.
EDIT the simplest example
function myGUI
figure('menubar','none','name','myGUI','numbertitle','off','resize','off');
plot(1:10)
datacursormode
end
  5 commentaires
FIR
FIR le 27 Fév 2012
Oleg if i click on that grapg where ever on the line and near by the line the values of x and y must be displayed,in each x and y boxes
Oleg Komarov
Oleg Komarov le 27 Fév 2012
You have to save it as a function and then call the function myGUI to see the effect.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Special Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by