I created the following class definition with an overloaded SIZE method:
classdef testclass properties values = ones(1,3); stored; end methods function s = size(hobj) s = builtin('size',hobj.values); end end end
When I instantiate an object of the class and examine the object in the Variable Editor:
t = testclass;openvar(t) I see the following: val = <a href="matlab:help testclass">testclass</a> Properties: values: [1 1 1] stored: [] <a href="matlab:methods('bfmsparse')">Methods</a>
This does not occur if I do not overload the SIZE method.
Best Answer