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

data | Methods See Also

Creator of the data class

Syntax

    data

    data(d)

    data(ndata,sdata,labels,variables,svariables)

    data(datafile,variables,svariables)

Description

`data` creates an empty data object.

`data(d)` clone the data object or fix a broken data object from its struct form.

`data(ndata,sdata,labels,variables,svariables)` create a data object. `ndata` are the numerical data (each piece of data is on a different line), `sdata` [cell] are the symbolic 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 numerical data. `svariables` [cell] are the names of the columns of the symbolic data.

`data(datafile,variables,svariables)` 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] for the numerical variables and `svariables`[cell] for the symbolic data. Each of this variable must be a column vector([double] or [cell]) of length equal to the number of data points.

Methods

- display displays the data object
- double converts the data object to double
- get Access/query data property values
- gfkclus performs Gustaffson Kessel clustering
- horzcat Horizontal concatenation operator
- kmeans performs kMeans clustering
- mkmeans performs multi prototypes clustering
- remPoint remove a point from a data set
- size get the size of the data set
- subsref overload the subscript reference operator
- vertcat vertical concatenation operator

See Also

[ Help Desk ]