dotAssign
Class: matlab.mixin.indexing.RedefinesDot
Namespace: matlab.mixin.indexing
Syntax
updatedObj = dotAssign(obj,indexOp,varargin)
Description
handles index assignment operations that begin with dots and index into fields that are
inaccessible or nonexistent, such as updatedObj = dotAssign(obj,indexOp,varargin)obj.PrivateProp = 3 or
obj.NotAProp{1} = 4. The indexOp object contains the
indices of the values being changed, and varargin is a cell array of values
to be assigned to those indexed locations. The method returns the updated object.
Input Arguments
Output Arguments
Examples
For an example of a scalar struct class that implements custom dot indexing, see matlab.mixin.indexing.RedefinesDot.
Version History
Introduced in R2021b