# 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/>
* TESA - <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>

Also see [a quick intro to Matlab](https://nigelrogasch.gitbook.io/tesa-user-manual/getting_started/a_quick_intro_to_matlab) and [a quick intro to EEGLAB](https://nigelrogasch.gitbook.io/tesa-user-manual/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](https://nigelrogasch.gitbook.io/tesa-user-manual/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>

### 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>

### 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nigelrogasch.gitbook.io/tesa-user-manual/getting_started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
