Essentials of neuroscience with MATLAB

This video-based course introduces learners to the power of MATLAB in different areas of neuroscience. Each module covers a different topic.
Updated 3 Oct 2023

Essentials of Neuroscience with MATLAB

The Essentials of Neuroscience With MATLAB course was developed to provide advanced undergraduates and early graduate students with a basic familiarity with MATLAB programming with an opportunity to deepen their expertise in neuroscience data analysis using MATLAB. Each module covers a range of specific data processing, analysis, and visualization skills that neuroscientists often need. In the process, each module teaches a specific set of MATLAB skills, although there is (both necessarily and by design) some overlap in skills across modules.

Data files for the modules are available for download on INCF TrainingSpace.

The videos are also hosted on YouTube as a playlist. And the direct video links are in each module folder.

The course is designed for cumulative educational flow, such that maximal benefit will come from taking the modules in order. However, module access is unrestricted, which means that students will have the flexibility to custom-tailor their course progression if they wish to deviate from the recommended path.

Module number Topic Description
Module 1 Spiking data The goal of this module is to work with action potential data taken from a publicly available database. You will learn about spike counts, orientation tuning, and spatial maps. The MATLAB code introduces data types, for-loops and vectorizations, indexing, and data visualization.
Module 2 EEG In this module, you will work with human EEG data recorded during a steady-state visual evoked potential study (SSVEP, aka flicker). You will learn about spectral analysis, alpha activity, and topographical mapping. The MATLAB code introduces functions, sorting, and correlation analysis.
Module 3 Computational Models This module introduces computational neuroscience by simulating neurons according to the AdEx model. You will learn about generative modeling, dynamical systems, and FI curves. The MATLAB code introduces Live Scripts and functions.
Module 4 fMRI This module covers fMRI data, including creating and interpreting flatmaps, exploring variability and average responses, and visual eccentricity. You will learn about processing BOLD signals, trial-averaging, and t-tests. The MATLAB code introduces data animations, multicolor visualizations, and linear indexing.
Module 5 Calcium Imaging You will learn about working with calcium imaging data, including image processing to remove background "blur," identifying cells based on thresholded spatial contiguity, time series filtering, and principal components analysis (PCA). The MATLAB code shows data animations, capabilities of the image processing toolbox, and PCA.

Inside each folder you can find source code files, a link to download the data files for that module (they're too big to host on github), and direct links to the videos in each module.

The video below is the overall course introduction (to open videos in a new tab, press Ctrl+click or CMD+click).

Video 1


Cite As

Mike X Cohen (2024). Essentials of neuroscience with MATLAB (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.