From: Kris on 24 May 2010 09:20 Please help me how to execute evalin function in GUIs Callback. For example (it is only part of code, I konow in this case I don't need to use evalin, it's just simple example of my problem ;): function pushbutton_time_series_Callback(hObject,eventdata, handles) t = getappdata(gcf,'t'); x1 = getappdata(gcf,'x1'); whos evalin('caller','plot(t,x1)'); returns error: ??? Error using ==> evalin Undefined function or variable 't'. function whos swows that there exist t and x1 When this variables ale also in main Matlab workspace and i call evalin('base','plot(t,x1)'); everything works perfectly, bui I mustn't use this (because of my professor, who wanrs me to keep all variables in GUIs workspace) What in this case is 'caller'? I was sure that it was my callback function, bui it seems not...
|
Pages: 1 Prev: Homework Help me please Next: How to detect a new coming image |