MATLAB Scripts

The new MATLAB interface of BESA Research allows to transfer data directly from BESA Research to MATLAB. This includes raw or averaged data, source waveforms, source models, 3D source images, peak scores, FFT and time-frequency results. The following little toolboxes provide some sample scripts that can be used to perform further processing of the transferred BESA Research data in MATLAB.

The list will be continuously extended and updated. You are invited to send us any MATLAB toolboxes or functions that you develop and think to be of use for other users, so that we can publish them on this site! Please contact research-support@besa.de.

MATLAB analysis of BESA 3D images

besa_image_analysis: A MATLAB toolbox to perform cross-subject statistical analysis of BESA 3D source images (comparison of two groups of images). Please click here for a short documentation. To use the toolbox, please extract all files in the downloaded zip archive to a folder that is included in the MATLAB search path. The toolbox uses the advanced statistical analysis features of the 'Fieldtrip' MATLAB toolbox provided by the Donders Institute for Brain, Cognition and Behaviour in Nijmegen (Netherlands). It can be downloaded for free at http://fieldtrip.fcdonders.nl. Note that the MATLAB Image Processing toolbox is required for the statistical analysis.

besa_average_images: Using this toolbox, 3D images calculated in BESA Research can be averaged. Please click here for a short documentation. To use the toolbox, please copy all files in the downloaded zip archive to a folder that is included in the MATLAB search path.

MATLAB analysis of BESA source waveforms

besa_swf_analysis: Use this script to perform statistical analysis on BESA source waveforms sent from BESA Research to MATLAB using the direct MATLAB interface of BESA Research. To start the script, please extract all files in the downloaded zip archive to a folder that is included in the MATLAB search path (e.g. subfolder BESA\Research_5_3\Scripts\MATLAB of your 'Public Documents' folder). Use this toolbox as besa_swf_analysis(besa_sourcewaveforms_all) from the MATLAB command window, where besa_sourcewaveforms_all is the struct that contains accumulated source waveform information transferred from BESA Research. For a demonstration of this toolbox and more details, please refer to BESA Research Tutorial 3 that is available from our Tutorials page.

waveforms: Use this script to perform statistical analysis on source waveforms exported from BESA to disc (*.swf files). To start the script, please copy all files in the downloaded zip archive to a folder that is included in the MATLAB search path. Then type 'waveforms' in the MATLAB command window. Features include the import and graphical display of source waveforms and the creation of grand average source waveforms including confidence intervals.

MATLAB analysis of BESA time-frequency data

besa_tfc_analysis: MATLAB toolbox to perform cross-subject statistical analysis of BESA time-frequency data (group comparison, grand averages). Please click here for a short documentation. To use the toolbox, please extract all files in the downloaded zip archive to a folder that is included in the MATLAB search path. The toolbox uses the advanced statistical analysis features of the 'Fieldtrip' MATLAB toolbox provided by the Donders Institute for Brain, Cognition and Behaviour in Nijmegen (Netherlands). It can be downloaded for free at http://fieldtrip.fcdonders.nl. Note that the MATLAB Image Processing toolbox is required for the statistical analysis.

MATLAB reader functions for BESA files

BESA MATLAB Readers: This zip file contains a range of MATLAB functions that read exported BESA files into MATLAB.

MATLAB Scripts

MATLAB Scripts

Statistical group analysis on source waveforms exported from BESA usign the 'waveforms' script.

> Enlarge image for more details!