Main Content

dotReference

Class: matlab.mixin.indexing.RedefinesDot
Namespace: matlab.mixin.indexing

Customize handling of object index references that begin with dots

Syntax

varargout = dotReference(obj,indexOp)

Description

varargout = dotReference(obj,indexOp) handles index referencing operations that begin with dots and index into fields that are inaccessible or nonexistent, such as obj.PrivateProp or obj.NotAProp{1}(2). 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.RedefinesDot.

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

Output Arguments

expand all

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

Attributes

Accessprotected
Abstracttrue

To learn about attributes of methods, see Method Attributes.

Examples

For an example of a scalar struct class that implements custom dot indexing, see matlab.mixin.indexing.RedefinesDot.

Version History

Introduced in R2012b