Spike sorting program for extracellular recordings. Version 1.4


Updated 5 Jun 2013

View License

GUI program that runs in Matlab and allows the user to draw polygons or boxes around multidimensional data points. This 'clustering' of data is used often for multi-electrode recordings of neural data. The program has been tested on Windows, Linux, and Mac platforms.

-Manual 2D clustering with polygons
-Interface for custom semi-automated sorting code
-3D rotation of feature space
-Filtering of points to precisely define each polygon’s scope
-Easy to use interface (context menus, undo states, zooming and panning)

Requires a mex compiler (free) for setup. If you don't have one, see here for easy instructions:

Also, please view readme.txt for setup instructions

Cite As

Mattias Karlsson (2023). MatClust (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: DecimatePoly

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Removed the object focus reset when cursor moves over cluster screen.

More copy-paste features/bug fixes

-Included 'Decimate polygon' code to reduce complexity of magic wand output
-improved keyboard shortcuts
-improved polygon copy-paste

Magic wand tool
Scroll wheel zooming
Minor bug fixes

Version 1.4
Added 'magic wand' tool
Minor bug fixes