<< shortcutor | Operators | subsindex >> |
B = subsasgn(A, S, B) |
Object used in indexing operation
Structure with two fields: 'type' and 'subs'.
The assigned value, located on the right side of the assignment statement.
The outcome of the assignment statement is the object that has been modified, and this modified object is provided as the first argument.
B = subsasgn(A, S, B) assigns a value to an element of a cell or matrix.
Parentheses Indexing
R1 = {1, 'GoodBye', [1, 2;3, 4]};
S = substruct('{}', {1, 3});
R2 = subsasgn(R1, S, 'Hello')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET