error with set handles.edit1 and function (varargin)
Show older comments
i'm making a GUI, i want to get the current point of axes1 and pass it to a textbox edit1, but i get the followin error:
??? Undefined variable "handles" or class "handles.edit1".
Error in ==> GUI>draggingFcn at 166
set(handles.edit1,'String','helo')
??? Error while evaluating figure WindowButtonMotionFcn
here is my part of my code:
function draggingFcn(varargin)
pt=get(gca,'CurrentPoint');
A=num2str(pt(1,1));
set(handles.edit1,'String',A)
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!