For example, I want create a figure in object method, but how than I can call some method from this figure?
classdef test methods function disp(obj) disp('hello') end function makeFig(obj) figure; uicontrol('style','pushbutton','callback',@obj.disp) % don't work
end end end
Best Answer