DataSet Construction
Jump to navigation
Jump to search
Getting Started
In general, data is stored in a dataset object.
From a GUI
Using PLS_Toolbox and Solo, it is easy to import data into a dataset object using the data importer. From the workspace browser select File/Import Data to launch the GUI.
From the MATLAB Command Line
From the command line, the easiest way to create a dataset is to pass an array to the dataset function. This can be shown by creating an array of random numbers.
>> >> randomdata = rand(20,15); >> data = dataset(randomdata) data = name: randomdata type: data date: 23-May-2016 11:18:14 data: 20x15 [double] label: {2x1} [array (char)] Mode 1 [: ] Mode 2 [: ] axisscale: {2x1} [vector (real)] (axistype) Mode 1 [: ] (none) Mode 2 [: ] (none) title: {2x1} [vector (char)] Mode 1 [: ] Mode 2 [: ] class: {2x1} [vector (double)] Mode 1 [: ] Mode 2 [: ] classid: {2x1} [cell of strings] include: {2x1} [vector (integer)] Mode 1 [: 1x20] Mode 2 [: 1x15] description: history: {1x1 cell} [array (char)] userdata: OTHER: [View Class Summary]