subsasgn
SUBSASGN method overloaded for adcarray objects.
Examples:
OBJ.PROP =VAL
OBJ.PROP1.PROP2 = VAL
etc. assigns the value B to the specified property of the adcarray object
See ADCARRAY/ADCARRAY for a list of properties
When a reference to an adcarray occurs to the left of an equals sign
SUBSASGN converts all the data to double precision, scales it, applies
the offset, executes obj.Func, does the assignment on the result and then
returns it, i.e.
obj(...) = ...mycode...
is equivalent to
obj=obj(); % Calls adcarray.subsref and returns a double precision array
obj(...) = ...mycode... % Assigns values to the double array
Note that the adcarray object is destroyed in the process. This behaviour
is useful because it allows adcarrays to be passed as arguments to MATLAB
functions (though not builtins). If the function attempts to assign a
value to the object, it will be converted to double (which may cause
out-of-memory problems with large data sets). Otherwise it will
remain an adcarray, with the usual memory saving.
See also SUBSASGN, ADCARRAY/SUBSREF, ADCARRAY/ADCARRAY, ADCARRAY/SET
Author: Malcolm Lidierth
Copyright © The Author & King's College London 2006
Correction 21/7/06 - delete isfield(val,'Repeat')