Home matlab how to call a class method that changes prop from another class method
 If I call a method (receiving and returning obj) it changes my property. But if I call that method from another method it fails. I tried all kinds of ways but still failing.  classdef AClass properties A; end methods function obj = ChangeA(obj, v) obj.A = v; end function obj = CallChangeA(obj) obj.ChangeA(4); %obj = obj.ChangeA(4); %ChangeA(obj, 4); %obj = ChangeA(obj, 4); % none of these works end end end % ------ script: a1 = AClass; a1.A = 1; a1.ChangeA(2); % a1.A = 2 a2 = AClass; a2.A = 3; a2.CallChangeA(); % a2.A = 3 !!! not four  How do I write the code so calling from 1 method to the other updates the property?