Importtool
Purpose
GUI for designating column/row data types in incoming data. Allows user to specify a column or row as labels, class sets, or axisscale or data.
Synopsis
- [ctypes, rtypes] = importtool(data);
- [ctypes, rtypes] = importtool(data,options);
Description
Allows user to identify data type (data, class, axisscale, include, and ignore) fields (row and columns) in a data matrix.
Options
options = a structure array with the following fields:
- fields: Nx2 cell array, first column is field name, second column is color to use.
Examples
Here we import a csv file by dragging the file into the browse window.
We have 4 lines of header rows so we set the 'header rows' field to 4 in the text import settings window. The automatic delimitter detection is being used in this example, however the user may force the use of a specific delimiter by selecting it in this window.
The importool will attempt to automatically detect label columns. Here the first column containing the names of beers has been automatically detected as a label column. The third column, containing class information of either 'ale' or 'lager' has also been automatically detected as a label column. To set this column to a class column, click where it says 'label' underneath C2 and select class. The importer will now populate the datasets'class field with the information contained within this second column.