2d and 3d brain plots
Updated 17 Jan 2017
Industry standard brain plotting programs are great for producing publication-quality images of brain data. However, these tools are often very slow. This suite of tools provides a means of quickly generating 2- or 3-dimensional plots of fMRI data that can be manipulated (e.g. rotated, modified) in real time.
Although these tools may be used to produce publication-quality figures, the focus here is on speed and ease of use. These tools are intended to be used for quickly exploring and examining fMRI data, debugging fMRI analyses, etc.
Note: this version is no longer maintained. Instead see: https://github.com/ContextLab/brain-plots
Jeremy Manning (2023). 2d and 3d brain plots (https://www.mathworks.com/matlabcentral/fileexchange/36139-2d-and-3d-brain-plots), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Sciences > Neuroscience > Human Brain Mapping > MRI >
Inspired by: Plot a 3D array using patch, getTightSubplotHandles, slices, sanePColor(varargin)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
I've added two missing files and have included minor updates to several functions.
Fixed some documentation errors, added support for more formats.
I have made a number of changes with this update that are intended to make the plotting functions easier to use.
added two new functions that plot from 3d matrices (tensors) rather than requiring the meta matrix.
Include file dependencies in the download.
updated documentation in plot_brain3d -- erode_layers parameter was incorrectly described in previous version.