PRTools Contents

PRTools User Guide

dset2cell

DSET2CELL

Convert dataset into cell array, one cell per feature

    C = DSET2CELL(A,N)
    C = A*DSET2CELL(N)

Input
 A Dataset with possibly categorical features
 N Desired features, default: all

Output
 C Cell array with one cell per feature. Categorical features are  decoded and stored as character arrays. If N is a scalar the cell  content of C is returned.

Description

This routine is an alternative for +A or DOUBLE(A), solving the problem  of categorical data. Categorical features stored in A by indices of lists  of category names in the feature domain field (SETFEATDOM) are decoded  and returned as strings in character arrays.

Missing data, coded as a NaN in a dataset are returned as an empty string  in case of a categorical feature.

SEE ALSO< a href="http://37steps.com/prtools">PRTools Guide  DATASETS, SETFEATDOM, FEATTYPES, CELL2DSET, CAT2DSET

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.