| Statistics Toolbox™ | ![]() |
Arrays for statistical data
| On this page… |
|---|
Superclasses: None
Subclasses: None
| Property | Value |
|---|---|
| Description | A string describing the data set. The default is an empty string. |
| Units | A cell array of strings giving the units of the variables in the data set. The number of strings must equal the number of variables. Strings may be empty. The default is an empty cell array. |
| DimNames | A cell array of two strings giving the names of the rows and columns, respectively, of the data set. The default is {'Observations' 'Variables'}. |
| UserData | Any variable containing additional information to be associated with the data set. The default is an empty array. |
| ObsNames | A cell array of nonempty, distinct strings giving the names of the observations in the data set. The number of strings must equal the number of observations. The default is an empty cell array. |
| VarNames | A cell array of nonempty, distinct strings giving the names of the variables in the data set. The number of strings must equal the number of variables. The default is the cell array of string names for the variables used to create the data set. |
The following table contains links to methods with supporting reference pages, including examples. For help on methods without links, type:
help dataset/methodname
| Method | Description |
|---|---|
| cat | Concatenate dataset arrays. The horzcat and vertcat methods implement special cases. |
| dataset | Construct dataset array. |
| datasetfun | Apply function to each variable of dataset array. |
| disp | Display dataset array, without printing data set name. |
| display | Display dataset array, printing data set name. To invoke this method, enter the name of a dataset array at the command prompt. |
| double | Convert dataset variables to double array. |
| end | Last index in indexing expression for dataset array. |
| get | Get dataset array property. |
| grpstats | A version of the grpstats function that accepts dataset arrays and categorical grouping variables as inputs. |
| horzcat | Horizontal concatenation for dataset arrays (add variables). To invoke this method, use square brackets, as described in Combining Dataset Arrays. |
| isempty | True for empty dataset array. |
| join | Merge observations from two dataset arrays. |
| length | Length of dataset array. |
| ndims | Number of dimensions of dataset array. |
| numel | Number of elements in dataset array. |
| replacedata | Convert array to dataset variables. |
| set | Set dataset array property value. |
| single | Convert dataset variables to single array. |
| size | Size of dataset array. |
| sortrows | Sort rows of dataset array. |
| subsasgn | Subscripted assignment for dataset array. To invoke this method, use parenthesis, dot, and curly brace indexing described in Accessing Dataset Arrays. |
| subsref | Subscripted reference for dataset array. To invoke this method, use parenthesis, dot, and curly brace indexing described in Accessing Dataset Arrays. |
| summary | Print summary statistics for dataset array. |
| unique | Unique observations in dataset. |
| vertcat | Vertical concatenation for dataset arrays (add observations). To invoke this method, use square brackets, as described in Combining Dataset Arrays. |
![]() | @cvpartition | @gmdistribution | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |