Lydos.Matlab

Matrix.Item Property (Int32, Int32)

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( rowcol );
MatrixObject.Item( rowcol ) = newValue;
-or-
returnValue = MatrixObject( rowcol );
MatrixObject( rowcol ) = 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.

Property Value

The element at the specified row and column of the matrix.

Exceptions

Exception TypeCondition
ObjectDisposedExceptionThrown when this has already been disposed.
ArgumentOutOfRangeExceptionThrown 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.

See Also

Matrix Class | Lydos.Matlab Namespace | Matrix.Item Overload List