Export CSV/MATLAB

Command: File > Export Data > Raw Data > CSV-MATLAB...

This command allows to export the raw data in a format which can be easily read by MATLAB(TM). In fact it exports the data cube as a CSV file together with a MATLAB script which you can use to load the exported data into MATLAB.

 

How To:
  1. If you do not want to export pixels of a particular mask select this mask. (1)
  2. Tick off "Include Wavelength/Property Information" in order to export the wavelength/mass/layer property as well. The wavelength will be appended to the exported data matrix as the last row of the matrix.
  3. Tick off "Flip Y Axis" in order to append a command in the MATLAB script which flips the y axis of the data.
  4. Choose the export ranges. "First" and "Last" specify the range inside a dimension.
  5. Click the "Export" button to open the export dialog and store the exported data.

Please note that the format of the CSV file is fixed. The data values are always exported as numbers in exponential notation using the maximum numeric precision with semicolons as separators. Further, the accompanying MATLAB script converts the exported 2-dimensional CSV file ("ILab2D") into the corresponding 3-dimensional data cube ("ILab3D") of size wid x hgt x bands and extracts the wavelength information if the option "Include Wavelength/Property Information" has been ticked off.

The data in the 2-dimensional CSV file is stored pixel-wise. Each line of the CSV grid represents one pixel, the columns of the CSV grid are the selected layer values (bands), see figure below.



1 Please note that matrices which do not include all pixels cannot be converted to a 3D cube in MatLab. Thus the generated m-file will not contain a statement for converting the data into a 3D cube if a pixel mask is selected.