classdef clA properties prop = 10; end methods function y = subsref (this, S) disp('>>> clA::subsref'); y = this.prop; end function y = getPropFromA (this) y = this.prop; end end end