braceAssign
Class: matlab.mixin.indexing.RedefinesBrace
Namespace: matlab.mixin.indexing
Syntax
updatedObj = braceAssign(obj,indexOp,varargin)
Description
handles index assignment operations that begin with braces, such as updatedObj = braceAssign(obj,indexOp,varargin)obj{4} =
3 or obj{1}.prop{2} = 4. The indexOp object
contains the indices of the values being changed, and varargin is a cell
array of values to be assigned to those indexed locations. The method returns the updated
object.
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