Managing Data
Transfer data into and out of MATLAB® using several different file formats. Valid formats include
tabular data, tab-delimited files, Microsoft®
Excel® spreadsheets, and SAS®
XPORT
files. For a table of supported file formats and their
associated import and export functions, see Supported File Formats for Import and Export. Alternatively, you can import data
interactively by using the Import Tool. Statistics and Machine Learning Toolbox™ supports many, but not all, of the data types available in
MATLAB. For more information, see Supported Data Types.
The nominal
, ordinal
, and
dataset
data types are unique to Statistics and Machine Learning Toolbox, and are no longer recommended. For greater cross-product
compatibility, use the categorical
or table
data types available in
MATLAB. For more information, see Create Categorical Arrays or
Create Tables and Assign Data to Them, or watch Tables and Categorical Arrays.
Functions
Classes
dataset | (Not Recommended) Arrays for statistical data |
Topics
- Statistics and Machine Learning Toolbox Example Data Sets
Use various data sets to try software features available in Statistics and Machine Learning Toolbox.
- Grouping Variables
Grouping variables are utility variables used to group or categorize observations.
- Dummy Variables
Dummy variables let you adapt categorical data for use in classification and regression analysis.
- Test Differences Between Category Means
Test for significant differences between category (group) means using a t-test, two-way ANOVA (analysis of variance), and ANOCOVA (analysis of covariance) analysis.
- Linear Regression with Categorical Covariates
Perform a regression with categorical covariates using categorical arrays and
fitlm
.