This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Sample Data Sets

Statistics and Machine Learning Toolbox™ software includes the sample data sets in the following table.

To load a data set into the MATLAB® workspace, type:

load filename

where filename is one of the files listed in the table.

Data sets contain individual data variables, description variables with references, and dataset arrays encapsulating the data set and its description, as appropriate.

FileDescription of Data Set
acetylene.matChemical reaction data with correlated predictors
arrhythmia.matCardiac arrhythmia data from the UCI machine learning repository
carbig.matMeasurements of cars, 1970–1982
carsmall.matSubset of carbig.mat. Measurements of cars, 1970, 1976, 1982
census1994.matAdult data from the UCI machine learning repository
cereal.matBreakfast cereal ingredients
cities.matQuality of life ratings for U.S. metropolitan areas
discrim.matA version of cities.mat used for discriminant analysis
examgrades.matExam grades on a scale of 0–100
fisheriris.matFisher's 1936 iris data
flu.matGoogle Flu Trends estimated ILI (influenza-like illness) percentage for various regions of the US, and CDC weighted ILI percentage based on sentinel provider reports
gas.matGasoline prices around the state of Massachusetts in 1993
hald.matHeat of cement vs. mix of ingredients
hogg.matBacteria counts in different shipments of milk
hospital.matSimulated hospital data
imports-85.mat1985 Auto Imports Database from the UCI repository
ionosphere.matIonosphere dataset from the UCI machine learning repository
kmeansdata.matFour-dimensional clustered data
lawdata.matGrade point average and LSAT scores from 15 law schools
mileage.matMileage data for three car models from two factories
moore.matBiochemical oxygen demand on five predictors
morse.matRecognition of Morse code distinctions by non-coders
nlpdata.matNatural language processing data extracted from the MathWorks® documentation.
ovariancancer.matGrouped observations on 4000 predictors
parts.matDimensional run-out on 36 circular parts
polydata.matSample data for polynomial fitting
popcorn.matPopcorn yield by popper type and brand
reaction.matReaction kinetics for Hougen-Watson model
sat.datScholastic Aptitude Test averages by gender and test (table)
sat2.datScholastic Aptitude Test averages by gender and test (csv)
spectra.matNIR spectra and octane numbers of 60 gasoline samples
stockreturns.matSimulated stock returns

Was this topic helpful?