parenDotAssign
Class: matlab.mixin.indexing.RedefinesDot
Namespace: matlab.mixin.indexing
Syntax
updatedObj = parenDotAssign(obj,indexOp,varargin)
Description
handles assignment operations that begin with built-in parentheses indexing immediately
followed by customized dot indexing. Examples include:updatedObj
= parenDotAssign(obj
,indexOp
,varargin
)
obj(idx).prop = val
obj(idx).(field) = val
[obj(idx).prop] = val
[obj(idx).(field)] = val
This method handles assignments that are combinations of parentheses and dot indexing for
classes that inherit from matlab.mixin.indexing.RedefinesDot
but do not inherit
from matlab.mixin.indexing.RedefinesParen
. The indexOp
object contains
the indexing operations and the indices of the values being changed.
varargin
is a cell array of values to be assigned to those indexed
locations. The method returns the updated object.
Input Arguments
Output Arguments
Version History
Introduced in R2022b