braceListLength
Determine number of values to return from customized indexing operations beginning with braces
Since R2021b
Syntax
n = braceListLength(obj,indexOp,indexContext)
Description
determines the number of values to return from customized indexing operations that begin with
braces and that reference or assign to comma-separated lists. Operations that begin with brace
indexing and end with dot or brace indexing produce comma-separated lists, such as
n = braceListLength(obj,indexOp,indexContext)[C{:}] = obj{1:3} and [obj{1}.prop{1:3}] = B{:}. The
indices being changed and the types of indexing operations are described in
indexOp, and indexContext identifies whether the reference is
used in a statement, as a list of arguments to a function, or in an assignment operation.
Input Arguments
Output Arguments
Examples
For an example of a class that implements custom brace indexing, see matlab.mixin.indexing.RedefinesBrace.
Version History
Introduced in R2021b