# Installation, getting started, and reporting bugs

## What you need

To run TESA you will need:

* Matlab 2015b (or higher)
* EEGLAB 13 - [http://sccn.ucsd.edu/eeglab/](http://sccn.ucsd.edu/eeglab/)
* TESA - [https://github.com/nigelrogasch/TESA/releases](https://github.com/nigelrogasch/TESA/releases)

## Installation

To install TESA, download the software from github releases page, unzip the TESA folder, and paste this in to the plugins folder located within the EEGLAB folder. For further information on installing extensions for EEGLAB, visit the extensions and plug-ins page on the EEGLAB website: [http://sccn.ucsd.edu/wiki/EEGLAB\_Extensions\_and\_plug-ins](http://sccn.ucsd.edu/wiki/EEGLAB_Extensions_and_plug-ins)

Also see [a quick intro to Matlab](getting_started/a_quick_intro_to_matlab) and [a quick intro to EEGLAB](getting_started/a_quick_intro_to_eeglab).

## Other code required to run TESA

Certain TESA functions require additional tool boxes or code. Once downloaded, ensure the folders containing this code are added to the Matlab path. See [a quick intro to Matlab](getting_started/a_quick_intro_to_matlab) for help using set path.

### Find TMS pulse (alternative)

To run the find TMS pulse (alternative), users will need to download a toolbox developed by Daniel Wagenaar (WagenaarMBL) which is available for download at: [http://www.its.caltech.edu/\~daw/teach.html](http://www.its.caltech.edu/~daw/teach.html)

### FastICA

To run FastICA, users will need to download the FastICA code from the following website and add this to the Matlab path: [http://research.ics.aalto.fi/ica/fastica/code/dlcode.shtml](http://research.ics.aalto.fi/ica/fastica/code/dlcode.shtml)

### Detrend

Using either the exponential or double exponential fitting options in the TESA detrend function requires the Matlab Curve Fitting Toolbox, which can be purchased from MathWorks or acquired through academic licenses (if you have access through your University).
