Dataset size

From Eigenvector Research Documentation Wiki
Revision as of 15:49, 8 October 2008 by imported>Jeremy (Importing text file)
(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