| MATLAB Compiler | ![]() |
mwArray RowIndex() const
Return array containing row indices of each element in this array.
C++ syntax
#include <stdio.h> #include "mclcppclass.h" mwArray a(1, 1, mxDOUBLE_CLASS); mwArray rows = a.RowIndex();
Arguments
Return value
An mwArray containing the row indices.
Description
Returns an array of type mxINT32_CLASS representing the row indices (first dimension) of this array. For sparse arrays, the indices are returned for just the non-zero elements and the size of the array returned is 1-by-NumberOfNonZeros(). For nonsparse arrays, the size of the array returned is 1-by-NumberOfElements(), and the row indices of all of the elements are returned.
| mwString ToString() const | mwArray ColumnIndex() const | ![]() |
© 1994-2005 The MathWorks, Inc.