Dataset size

From Eigenvector Research Documentation Wiki
Revision as of 17:16, 8 October 2008 by imported>Jeremy
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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