title | tags | |
---|---|---|
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 website. Also tutorials can be added. Every time you explain somebody something about FieldTrip, please consider whether you could use the website for this, so others can learn from it as well. If you want to contribute one of your example scripts, please add it directly to the website or contact us.
See also the tutorials and frequently asked questions.
- Detect the muscle activity in an EMG channel and use that as trial definition
- Fixing a missing sensor
- Getting started with reading raw EEG or MEG data
- How to incorporate head movements in MEG analysis
- Interpolating data from the CTF151 to the CTF275 sensor array using ft_megrealign
- Making your own trialfun for conditional trial definition
- The correct pipeline order for combining planar MEG channels
- Use independent component analysis (ICA) to remove ECG artifacts
- Use independent component analysis (ICA) to remove EOG artifacts
- Analysis of high-gamma band signals in human ECoG
- Analyze Steady-State Visual Evoked Potentials (SSVEPs)
- Cross-frequency analysis
- Effect of Signal-to-Noise Ratio on Coherence
- Effects of tapering for power estimates
- Fourier analysis of oscillatory power and coherence
- Simulate an oscillatory signal with phase resetting
- Irregular Resampling Auto-Spectral Analysis (IRASA)
- Conditional Granger causality in the frequency domain
- Align EEG electrode positions to BEM headmodel
- Check the quality of the anatomical coregistration
- Combined EEG and MEG source reconstruction
- Common filters in beamforming
- Compute forward simulated data and apply a beamformer scan
- Compute forward simulated data and apply a dipole fit
- Create MNI-aligned grids in individual head-space
- Determine the filter characteristics
- Fit a dipole to the tactile ERF after mechanical stimulation
- How to create a head model if you do not have an individual MRI
- Localizing the sources underlying the difference in event related fields
- Make leadfields using different headmodels
- Plotting the result of source reconstructing on a cortical mesh
- Read neuromag .fif mri and create MNI-aligned single_shell grids in individual head-space
- Testing BEM created lead fields
- Use your own forward leadfield model in an inverse beamformer computation
- Using the low-level compute_leadfield function
- Apply clusterrandanalysis on TFRs of power that were computed with BESA
- How can I compute and report the effect size?
- Source statistics
- Stratify the distribution of two variables
- Use simulated ERPs to explore cluster statistics
- Example real-time average
- Example real-time classification
- Example real-time power estimate
- Example real-time selective average
- Example real-time signal viewer
- Measuring the timing delay and jitter for a real-time application
- Realtime neurofeedback application based on hilbert phase estimation
- BIDS - the brain imaging data structure
- Combining simultaneous recordings in BIDS
- Converting an example behavioral dataset for sharing in BIDS
- Converting an example EEG dataset for sharing in BIDS
- Converting an example EMG dataset for sharing in BIDS
- Converting an example eyetracker dataset for sharing in BIDS
- Converting an example motion tracking dataset for sharing in BIDS
- Converting an example video dataset for sharing in BIDS
- Converting the combined MEG/fMRI MOUS dataset for sharing in BIDS
- Correlation analysis in fMRI data
- Example analysis pipeline for Biosemi bdf data
- Find the orientation of planar gradiometer channels
- How to import data from MNE-Python and FreeSurfer
- How to use checkconfig
- Writing simulated data to a CTF dataset