From: Håkon Hobæk on 30 Jul 2010 03:36 I have a simple question here, because I just don't seem to get matlabs oop. I have a classdef a < handle propertries .... end methods function obj = a figure ('Closerequestfcn', @obj.my_closerereq) end function my_closereq(varargin) .... end end If I try to close the figure I get method my_closereq is not defined for class a or is removed from matlabs search path. how come? Is there a really good tutorial for matlab's oop somewhere? I'm following the help menu receipies, but I still can't get it to work properly. It seems so much more cumbersome and difficult than java for instance. thanks in advance!
From: Matt J on 30 Jul 2010 10:01 "Håkon Hobæk" <hakonmh(a)hotmail.com> wrote in message <i2tvd3$hrq$1(a)fred.mathworks.com>... > figure ('Closerequestfcn', @obj.my_closerereq) ============== You've misspelled "my_closereq" in this line of code
|
Pages: 1 Prev: changing a callback from a running GUI Next: Stopping a RTW executable |