displaying values

조회 수: 2 (최근 30일)
FIR
FIR 2012년 2월 24일
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

채택된 답변

Oleg Komarov
Oleg Komarov 2012년 2월 24일
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
FIR
FIR 2012년 2월 27일
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 2012년 2월 27일
You have to save it as a function and then call the function myGUI to see the effect.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by