dsNameAdd

Add names to a dataset if they are missing

Contents

Syntax

Description

DS2=dsNameAdd(DS) returns a new dataset with necessary names for other dataset visualization function.

Example

DS.input=rand(1,10);
DS.output=double(rand(1,10)>0.5)+1;
fprintf('Original DS:\n'); disp(DS)
DS2=dsNameAdd(DS);
fprintf('Final DS:\n'); disp(DS2);
Original DS:
      dataName: 'iris'
     inputName: {'sepal length'  'sepal width'  'petal length'  'petal width'}
    outputName: {'Setosa'  'Versicolour'  'Virginica'}
         input: [1×10 double]
        output: [1 1 2 1 1 2 2 1 2 2]

Final DS:
      dataName: 'iris'
     inputName: {'sepal length'  'sepal width'  'petal length'  'petal width'}
    outputName: {'Setosa'  'Versicolour'  'Virginica'}
         input: [1×10 double]
        output: [1 1 2 1 1 2 2 1 2 2]
    annotation: {'1'  '2'  '3'  '4'  '5'  '6'  '7'  '8'  '9'  '10'}

See Also

dsFormatCheck, dsClassSize.


Top page   Next: dsFuzzify.m   Prev:dsProjPlot1.m