MLIB - toolbox for analyzing spike data

Set of functions for the basic analysis of spike data from neurophysiological experiments
4.3K Downloads
Updated 23 Jan 2025

View License

MLIB is a software package for the analysis of neuronal spike data, i.e., patterns of extracellularly recorded action potentials. In particular, MLIB contains functions for a) assessing spike sorting quality / unit isolation, b) constructing peri-stimulus time histograms, raster displays and spike density functions, c) analyzing single-neuron response properties. Among the latter, MLIB provides functions for the calculation of response latency, the disentangling of encoded features through multiple regression, the examination of coding properties with moving-window calculation of the area under the ROC curve, and the visualization of population activity with PCA-based dimensionality reduction. In addition, MLIB contains three functions for the basic analysis of local field potential (LFP) data (calculation of evoked potentials and their confidence intervals, spectral analysis, and current source density analysis).

Cite As

Maik Stüttgen (2025). MLIB - toolbox for analyzing spike data (https://www.mathworks.com/matlabcentral/fileexchange/37339-mlib-toolbox-for-analyzing-spike-data), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Electrophysiology in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.0

The toolbox was drastically overhauled and expanded. MLIB now contains 20 functions, 17 for spike data and 3 for LFP data. Usage of each function is described in-depth with example data.

1.7.0.0

- new function: mcvar.
- mrocr.m now handles vectors holding floating-point numbers
- modified mpsth.m and mcheck.m in quite a few ways - see comments in file.
- see individual functions' histories for more
did some polishing for mcheck, msdf, mwave;
added new tool test_msdf for testing different filter kernels in msdf for real and simulated spike train data

1.6.0.0

mlib v5 contains three new functions for spike analysis - mnspx, mreshape, mwa. See text file for functionality. Also, some (minor) bug fixes have been done.

1.5.0.0

debugged mwave
added some documentation info

1.4.0.0

added function mwave.m to compute spike width

1.3.0.0

minor modifications to msdf and checkunit; see notes therein

1.0.0.0