Dataset numel

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 a value of 1 for any dataset object.

Synopsis

D = numel(x);

Description

WARNING! This overloaded function always returns a value of 1 (one) for any DataSet object, regardless of the number of elements in the data field! This odd behavior is required by MATLAB for any user-defined object. To get the number of elements stored in the data field of a given DataSet object, use:

  numel(x.data)

See Also

dataset/size