dsSubset

Subset of a dataset

Contents

Syntax

Description

ds2=dsSubset(ds, opt): return a subset of the given ds based on the given opt

Example

ds=prData('iris');
disp(ds)
opt=dsSubset('defaultOpt');
opt.input={'petal length', 'petal width'};
ds2=dsSubset(ds, opt);
disp(ds2)
      dataName: 'iris'
     inputName: {'sepal length'  'sepal width'  'petal length'  'petal width'}
    outputName: {'Setosa'  'Versicolour'  'Virginica'}
         input: [4×150 double]
        output: [1×150 double]

      dataName: 'iris'
     inputName: {'petal length'  'petal width'}
    outputName: {'Setosa'  'Versicolour'  'Virginica'}
         input: [2×150 double]
        output: [1×150 double]

See Also

dsClassMerge, dsFeaDelete, dsNameAdd.


Top page   Next: dsScatterPlot3.m   Prev:dsSubset_old.m