numel (DataMatrix) - Return number of elements in DataMatrix object
Syntax
N = numel(DMObj)
Ns = numel(DMObj, Index1, Index2)
Arguments
| DMObj | DataMatrix object, such as created by DataMatrix (object
constructor). |
| Index1 | A row or range of rows in DMObj specified
by a positive integer or a range using the format x:y,
where x is the first row and y is
the last row. |
| Index2 | A column or range of columns in DMObj specified
by a positive integer or a range using the format x:y,
where x is the first column and y is
the last column. |
Return Values
| N | Positive integer representing the number of elements in DMObj,
a DataMatrix object. |
| Ns | Positive integer representing the number of subscripted elements
in DMObj, a DataMatrix object. |
Description
N = numel(DMObj) returns 1.
To find the number of elements in DMObj,
a DataMatrix object, use either of the following syntaxes:
prod(size(DMObj))
numel(DMObj,':',':')
Ns = numel(DMObj, Index1, Index2) returns
the number of subscripted elements in DMObj,
a DataMatrix object. Index1 specifies a
row or range of rows in DMObj. Index2 specifies
a column or range of columns in DMObj.
See Also
Bioinformatics Toolbox function: DataMatrix (object
constructor)
Bioinformatics Toolbox object: DataMatrix object
 | num2goid | | nwalign |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit