Dataset numel: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy m (Dataset/numel moved to Dataset numel over redirect) |
imported>Jeremy |
||
| Line 8: | Line 8: | ||
numel(x.data) | numel(x.data) | ||
===See Also=== | ===See Also=== | ||
[[ | [[dataset_size]] | ||
Latest revision as of 16:16, 8 October 2008
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)