parenReference
Class: matlab.mixin.indexing.RedefinesParen
Namespace: matlab.mixin.indexing
Customize handling of object index references that begin with parentheses
Since R2021b
Syntax
varargout = parenReference(obj,indexOp)
Description
handles index referencing operations that begin with parentheses, such as
varargout
= parenReference(obj
,indexOp
)obj(idx)
or obj(idx).prop{1}
. The method returns the
indexed values from obj
. The indexOp
object contains the
indices being referenced.
Input Arguments
Output Arguments
Examples
For a general framework that shows how to implement customized parentheses indexing, see
matlab.mixin.indexing.RedefinesParen
. For a runnable example of
a mapping class that implements custom parentheses indexing, see Customize Parentheses Indexing for Mapping Class.
Extended Capabilities
Version History
Introduced in R2021b