Accesses the matrix as a multidimensional array.
[C#] In C#, this property is the indexer for the Matrix class.
[Visual Basic] Public Default Property Item( _ ByVal row As Integer, _ ByVal col As Integer _ ) As Double [C#] public double this[ int row, int col ] { get; set; } [C++] public: __property double get_Item( int row, int col ); public: __property void set_Item( int row, int col, double newValue ); [JScript] returnValue = MatrixObject.Item( row, col ); MatrixObject.Item( row, col ) = newValue; -or- returnValue = MatrixObject( row, col ); MatrixObject( row, col ) = newValue;
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.
The element at the specified row and column of the matrix.
Exception Type | Condition |
---|---|
ObjectDisposedException | Thrown when this has already been disposed. |
ArgumentOutOfRangeException | Thrown when row is less than zero or greater than the number of rows or when col is less than zero or greater than the number of columns. |
Matrix Class | Lydos.Matlab Namespace | Matrix.Item Overload List