Installation of the mat2dcorr toolbox

From 2D-COS Wiki
Jump to navigation Jump to search

To download go to http://www.peter-lasch.de/2dcorr/

Required Files

Program Files of the mat2Dcorr toolbox:

  1. mat2dcorr.m
  2. updcorrplt.m
  3. readme.txt

Software:

  1. Matlab R2014a or newer

Extra Files i.e. spectral data files

  1. linescandata.mat - example data file in the trace (2D) data format, see also trace data format
  2. IR-cerebellum-50x50.mat - example data file in the hyperspectral imaging (3D) data format (FT-IR spectra from hamster cerebellum), see also imaging data format (Matlab)
  3. MALDI-cerebellum-50x50.mat - example data file in the hyperspectral imaging (3D) data format (MALDI-TOF mass spectra from hamster cerebellum), see also imaging data format (Matlab)
  4. fftsyncro.mat - result file of 2D correlation analysis by the mat2dcorr toolbox using the FFT 2D-COS option, for details of the result file format refer also to the section format of a 2D-COS result file (Matlab)
  5. statssyncro.mat - result file of 2D correlation analysis by the mat2dcorr toolbox using the statistical 2D-COS option, for details of the result file format refer also to the section format of a 2D-COS result file (Matlab)

Installation

  • Download files 1.-3. + some test data (see above) and and copy them into one single directory, for example into a directory mat2dcos.
  • Add then this directory to Matlab's search path. For this start Matlab and type
   >> addpath('Mat2DcorrPath')

at the Matlab command prompt, where Mat2DcorrPath denotes the full path where the the toolbox resides (i.e. mat2dcos).
Example of Mat2DcorrPath: C:\Users\Tim\Documents\Matlab\Mat2D

  • To start mat2Dcorr type
   >> mat2dcorr

at the Matlab prompt.

This will open two different windows:

  1. A window entitled '2D correlation analysis ... ' which shows the 2D correlation spectrum and mean spectra obtained from the x- and y-spectral data
  2. The 2D-COS control window (see screenshot below)
Mat2Dcorr: screenshot of the 2D control window (left) and the window '2D correlation analysis ... ' (right)