Main Content

parenDelete

Class: matlab.mixin.indexing.RedefinesParen
Package: matlab.mixin.indexing

Customize handling of object index deletions

Syntax

updatedObj = parenDelete(obj,indexOp)

Description

updatedObj = parenDelete(obj,indexOp) handles index deletion operations that begin with parentheses, such as obj(idx) = []. The indexOp object contains the indices being referenced. The method returns the updated object.

Input Arguments

expand all

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

Type of indexing operation and indices referenced, specified as an array of IndexingOperation objects. For a parentheses deletion, the first object in the array has a Type property of ParenDelete.

Output Arguments

expand all

Updated object after the deletion operation.

Attributes

Accessprotected
Abstracttrue

To learn about attributes of methods, see Method Attributes.

Examples

For a fully annotated example of a mapping class that implements custom parentheses indexing, see Customize Parentheses Indexing for Mapping Class.

Introduced in R2021b