Accessing Items in .NET Collections
Use the Item property of the
System.Collections.Generic
List class to get or set an element at a specified index. Since
Item is a property that takes arguments, MATLAB® maps it to a pair of methods to get and set the value. For example, the
syntax to use Item to get a value is:
| Return Type | Name | Arguments |
|---|---|---|
System.String RetVal | Item | (System.Collections.Generic. |
The syntax to use Item to set a value is:
| Return Type | Name | Arguments |
|---|---|---|
| none | Item | (System.Collections.Generic. |