Easily Simulate Custom Networks of LIF Neurons

Design and simulate your leaky integrate and fire (LIF) neuron network in only a few lines of code.
Updated 31 Jul 2020

View License

In only a few lines of code you can customize and simulate a network of leaky integrate and fire neurons (LIF). This function facilitates quick testing of network architectures. The network can be simple, only specifying the weights of the connections between neurons, or complex with options ranging from offset currents, refractory periods, speed of synaptic transmission, noise, etc.
Usage notes, extensive examples, and sources are given in the help.

Cite As

Zachary Danziger (2024). Easily Simulate Custom Networks of LIF Neurons (https://www.mathworks.com/matlabcentral/fileexchange/50339-easily-simulate-custom-networks-of-lif-neurons), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Neural Simulation 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

% Bugfix: Updated accumarray call to output as many elements as there are
% neurons to avoid synamptic contribution errors when there are neurons in
% the network that have no connections to other neurons. ZC Danziger July 2020