get and set methods for RingControl
The following definitions in RingControl.m
function set.sh(obj,value)
obj.sh.set(value)
end
function value = get.sh(obj)
value = obj.sh.get;
end
would allow to get and assign (for example) horizontal steerers as in the snippet below:
rc = Ringcontrol('ebs-simu')
h0 = rc.sh;
rc.sh = h0;
a rather neat solution... but would require many repeated definitions in RingControl.m the overload of the = operator is forbidden in matlab.