次のMATLABコードは機能しません。関数チェンジャーでは、MATLABは値を同じに設定するだけでなく、オブジェクトA
を等しくしようとします。B
そのための回避策はありますか?
classdef foo
%FOO Summary of this class goes here
% Detailed explanation goes here
properties
A=5
B=0
end
methods
function changer(obj)
obj.B=obj.A
end
end
end