Dataset size: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
No edit summary
 
Line 2: Line 2:
Returns the size of the data field in a DataSet object.
Returns the size of the data field in a DataSet object.
===Synopsis===
===Synopsis===
D = size(x,dim);
:D = size(x,dim);
[M,N,...] = size(x);
:[M,N,...] = size(x);
===Description===
===Description===
Returns the size of a DataSet .data field for the specified dimension dim. If dimension is not specified, sizes for all non-singleton dimensions are returned, either as multiple outputs, M, N, etc, or a single vector.
Returns the size of a DataSet .data field for the specified dimension dim. If dimension is not specified, sizes for all non-singleton dimensions are returned, either as multiple outputs, M, N, etc, or a single vector.
Example: The following returns the number of columns in the .data field of a DataSet object, a:
 
cols = size(a,2);
===Example===
The following returns the number of columns in the .data field of a DataSet object, a:
cols = size(a,2);
===See Also===
===See Also===
[[dataset/end]], [[dataset/length]], [[dataset/subsref]], [[dataset/ndims]]
[[dataset_end]], [[dataset_length]], [[dataset_subsref]], [[dataset_ndims]]

Latest revision as of 17:16, 8 October 2008

Purpose

Returns the size of the data field in a DataSet object.

Synopsis

D = size(x,dim);
[M,N,...] = size(x);

Description

Returns the size of a DataSet .data field for the specified dimension dim. If dimension is not specified, sizes for all non-singleton dimensions are returned, either as multiple outputs, M, N, etc, or a single vector.

Example

The following returns the number of columns in the .data field of a DataSet object, a:

cols = size(a,2);

See Also

dataset_end, dataset_length, dataset_subsref, dataset_ndims