matlab.mixin.indexing.RedefinesParen.parenReference - Customize handling of object index references that begin with

  parentheses - MATLAB ([original](http://www.mathworks.com/help/matlab/ref/matlab.mixin.indexing.redefinesparen.parenreference.html)) ([raw](?raw))

Main Content

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

[varargout](#mw%5Fc4f2233c-4434-40fb-bfe8-5fcfd2154703) = parenReference([obj](#mw%5F40e25390-62fb-4ca1-a23a-8d50b2080d33),[indexOp](#mw%5Fcc1a06c5-44ad-49aa-8a13-f0a401606390)) handles index referencing operations that begin with parentheses, such asobj(idx) or obj(idx).prop{1}. The method returns the indexed values from obj. The indexOp object contains the indices being referenced.

Input Arguments

expand all

Object that implements customized parentheses indexing by inheriting from matlab.mixin.indexing.RedefinesParen.

Types of indexing operations and indices referenced, specified as an array ofIndexingOperation objects. For a parentheses reference, the first object in the array has a Type property ofParen.

Output Arguments

expand all

The indexed values returned from the reference operation, specified as a cell array.

Attributes

Access protected
Abstract true

To learn about attributes of methods, seeMethod Attributes.

Examples

For a general framework that shows how to implement customized parentheses indexing, seematlab.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