Dataset ndims: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
m (Dataset/ndims moved to Dataset ndims over redirect)
imported>Jeremy
No edit summary
 
Line 2: Line 2:
Returns the number of dimensions of the data field in a DataSet object.
Returns the number of dimensions of the data field in a DataSet object.
===Synopsis===
===Synopsis===
D = ndims(x);
:D = ndims(x);
===Description===
===Description===
Returns the number of dimensions (i.e. modes) of a DataSet .data field.
Returns the number of dimensions (i.e. modes) of a DataSet .data field.
Example: The following returns the number of dimensions in the .data field of a three-way DataSet object, a:
===Example===
The following returns the number of dimensions in the .data field of a three-way DataSet object, a:
<pre>
>>ndims(a)
>>ndims(a)
ans =
ans =
     3
     3
</pre>
===See Also===
===See Also===
[[dataset/size]]
[[dataset_size]]

Latest revision as of 16:05, 8 October 2008

Purpose

Returns the number of dimensions of the data field in a DataSet object.

Synopsis

D = ndims(x);

Description

Returns the number of dimensions (i.e. modes) of a DataSet .data field.

Example

The following returns the number of dimensions in the .data field of a three-way DataSet object, a:

>>ndims(a)
ans =
     3

See Also

dataset_size