MATLAB Function Reference | Go to function: | Search Help Desk

dataset |

Creator of the dataset class

Syntax

    dataset(data,symbols,vartypes,labels,variables)

    data(datafile,variables,symbols,vartypes,labels)

Description

`dataset(data,symbols,vartypes,labels,variables)` create a data object. `data` are the data (each piece of data is on a different line). `labels` is a column vector of the labels (optional) corresponding to each piece of data. `variables` [cell], are the names of the columns of the data. `symbols` [cell] are the symbolic correspondance for the symbolic data. `vartypes` is a cell array containing the type of the variable for each column ('continuous','discrete','symbolic','class'). There can only be one 'class' variable at a time. If vartypes is not specified, the types are deduced from the `data` and the symbol field

`data(datafile,variables,symbols,vartypes,labels)` create a data object from a mat datafile. `datafile` is the name of the mat file where the data are saved. The file must contain a series of variables referenced by `variables`[cell]. Each of this variable must be a column vector([double] or [cell]) of length equal to the number of data points.

[ Help Desk ]