Dataset size
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);