subsasgn
Redefine subscripted assignment.
Syntax
B = subsasgn(A, S, B)
Input argument
A - Object used in indexing operation
S - Structure with two fields: 'type' and 'subs'.
B - The assigned value, located on the right side of the assignment statement.
Output argument
R - The outcome of the assignment statement is the object that has been modified, and this modified object is provided as the first argument.
Description
B = subsasgn(A, S, B) assigns a value to an element of a cell or matrix.
Example
Parentheses Indexing
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated