parenDotListLength
Class: matlab.mixin.indexing.RedefinesDot
Namespace: matlab.mixin.indexing
Number of values to return from customized indexing assignments with parentheses and dots
Since R2022b
Syntax
n = parenDotListLength(obj,indexOp,indexContext)
Description
determines the number of values n
= parenDotListLength(obj
,indexOp
,indexContext
)n
to return from customized indexing
assignment operations that begin with built-in parentheses indexing and are immediately
followed by customized dot indexing. For example, MATLAB® calls parenDotListLength
for an assignment statement like
[obj(idx).label{:}] = A
. This method is called for classes that inherit
from matlab.mixin.indexing.RedefinesDot
but do not inherit from matlab.mixin.indexing.RedefinesParen
. The indexOp
object contains
the indices being changed. indexContext
is
matlab.indexing.IndexingContext.Assignment
for the default implementation
of the method.
Input Arguments
Output Arguments
Version History
Introduced in R2022b