size
Return size of MetaData object
Syntax
NSamVar
= size(MDObj
)
[NSamples
, NVariables
]
= size(MDObj
)
DimLength
= size(MDObj
, Dim
)
Description
returns
a two-element row vector containing the number of samples or features
and number of variables in a MetaData object.NSamVar
= size(MDObj
)
[
returns the number
of samples or features and the number of variables in a MetaData object
as separate variables.NSamples
, NVariables
]
= size(MDObj
)
returns
the length of the dimension specified by DimLength
= size(MDObj
, Dim
)Dim
.
Input Arguments
|
Object of the |
|
Scalar specifying the dimension of the MetaData object. Choices are:
|
Examples
Construct a MetaData object, and then determine the number of samples and variables in it:
% Import the bioma.data namespace to make constructor function % available import bioma.data.* % Construct MetaData object from .txt file MDObj2 = MetaData('File', 'mouseSampleData.txt', 'VarDescChar', '#'); % Retrieve the number of samples and variables NumSamVar = size(MDObj2)