classdef bug60143_handle < handle properties t u end methods function a = set.t(this, val) disp('method set.t'); this.t = val; a = 1; end function b = set.u(this, val) disp('method set.u'); b = bug60143_handle; b.u = val; end end end