MATLAB: Displaying values

datacursormodedatatipvalues

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

Best Answer

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