Installing the ICA /EEG Toolbox
Installing the ICA toolbox is simple. Just do the following:
- Download the zip'd (.zip), gzip'd (.gz) or compress'd (.Z) toolbox file to your matlab directory or folder (else, to another ica directory|folder if you prefer).
- Uncompress or unzip the file using your utility software.
- If the filename now ends in .tar, untar the files using Unix
% tar -xvf _tarfilename_ - Now edit the ascii file "icadefs.m," inserting
- ICADIR - this is the directory or folder in which you leave the Matlab functions. (Put this directory into your Unix MATLABPATH environment variable, by adding to your Unix home directory .cshrc file the line:
setenv MATLABPATH $MATLABPATH:_ICADIR_ Replace the word _ICADIR_ with the full directory or folder pathname where you have placed the toolbox functions (.m files). Put this line after the first definition of the environment variable MATLABPATH in the .cshrc file. This variable tells Matlab the directories to look in to find functions that you call.
- TUTDIR - this is the directory or folder in which you put these tutorial files if you choose to download them. If this is the same directory/folder as your ICADIR, leave this definition as is.
- ICA - this is the pathname of the binary ICA executable file, which you must download separately if you so choose. The binary ica executes up to 12 times faster the the ascii Matlab version runica(), and uses almost four times less memory. The Matlab function binica() calls this binary from the Matlab commandline. You may also call the binary ica from your shell commandline.
- If you choose to, download these tutorial files and expand to the directory you defined as the TUTDIR above.
- If you so choose, download the stand-alone binary version of runica() appropriate for your computer system. Uncompress the executable file and place it in the location you defined as ICA above.(In Unix, you may have to change the file permissions by
% chmod +x _ica_ Here _ica_ should be the filename of the binary executable.- Now, start Matlab and type
>> tutorial Open the function help window
Comments and suggestions welcome. scott@salk.edu
View log of changes to this tutorial.