Example MATLAB scripts

Here you can find example MATLAB scripts together with documentation that show specific analyses done in FieldTrip or in MATLAB. The documentation here is often not as elaborate as the tutorials, but goes more in detail into specific aspects of the data, code or analysis.

We invite you to add your own example scripts or frequently asked questions to the wiki. Also tutorials can be added. Every time you explain somebody something about FieldTrip, please consider whether you could use the wiki for this so others can learn from it as well. If you want to contribute one of your scripts, please add it directly to the wiki or contact us.

See also the tutorials and frequently asked questions.

Reading and preprocessing data

Spectral analysis

Source reconstruction

Statistical analysis

Real-time analysis