Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setappdata, getappdata

25 views
Skip to first unread message

kaan yilmaz

unread,
Feb 10, 2012, 7:22:09 PM2/10/12
to
when i push a button, getappdata on a push button callback function does not work, can anyone help me please?

function stopbutton_Callback(hObject, eventdata, handles)
% hObject handle to stopbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%t=toc;

current = getappdata(0, 'current') ;
current
global timerx;
timery = timerx;
stop(timery)
t = 0;
formttt='%d%d:%0.2f';
t=datevec(t/86400);
s=strrep(sprintf(formttt,t),': ',':0');
global zamanx;

ImageAnalyst

unread,
Feb 10, 2012, 9:38:24 PM2/10/12
to
Did you ever set current with setappdata()?

Steven_Lord

unread,
Feb 13, 2012, 10:18:05 AM2/13/12
to


"kaan yilmaz" <br...@hotmail.com> wrote in message
news:jh4cbh$dgm$1...@newscl01ah.mathworks.com...
> when i push a button, getappdata on a push button callback function does
> not work, can anyone help me please?

No, no one can help you unless you define what "does not work" means. Does
it throw an error? Does it warn? Does it give you an answer different than
what you expect?

*snip*

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

0 new messages