Code covered by the BSD License  

Highlights from
2d and 3d brain plots

5.0 | 1 rating Rate this file 31 Downloads (last 30 days) File Size: 97.2 KB File ID: #36139
image thumbnail

2d and 3d brain plots



11 Apr 2012 (Updated )

Quickly and easily create 2d and 3d plots of fMRI data.

| Watch this File

File Information

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.


Get Tight Subplot Handles, Slices, Sane P Color, and Plot A 3 D Array Using Patch inspired this file.

MATLAB release MATLAB 7.13 (R2011b)
Other requirements This file depends on: sanePColor (35601), getTightSubplotHandles (35435), slices (35436), and PATCH_3Darray (28497). These files are included in the download.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
30 Jul 2013 David Cahn  
29 Jul 2013 Jeremy Manning

Hi David,

I would be happy to help. Can you please either describe your data in more detail or send me an example that triggers this error?

Note that if you set erode_layers too large, you will encounter an error, since only as many layers as exist may be stripped off of the brain image.

Comment only
26 Jul 2013 David Cahn


I downloaded your code, but when I run brain_plot3d_alt, it prints a 2D image instead of a 3D image. I'm using the standard MNI brain...

Also, every time I try to put in an input for erode_layers the code throws an error. What's going wrong?


Comment only
11 Apr 2012

updated documentation in plot_brain3d -- erode_layers parameter was incorrectly described in previous version.

25 Apr 2012

Include file dependencies in the download.

22 Feb 2013

added two new functions that plot from 3d matrices (tensors) rather than requiring the meta matrix.

11 Dec 2013

I have made a number of changes with this update that are intended to make the plotting functions easier to use.

12 Dec 2013

Fixed some documentation errors, added support for more formats.

Contact us