

In the above plot (known as a raster plot), each black bar represents one spike or action potential and each row of black bars (or a spike train) represents spiking activity of a neuron over a period of 1.5 s. dots moving on a screen are commonly used to study how the brain processes movement. Neuroscientists commonly place electrodes in live animals (such as mice / rats / monkeys) to monitor neural activity in region(s) of the brain that are of interest to them while the animal is performing a task, e.g. We can monitor neural activity, and therefore spikes, by placing electrodes close to a neuron in the brain. In neuroscience, the words firing and spiking commonly refer to action potentials generated by a neuron. We will simulate spike trains using MATLAB and visualize spiking activity by making raster plots. The goal of this tutorial is to understand how neurons encode a stimulus. Students told me they really liked the class, so I thought I would share this with everyone. The goal of the first part of the class was to implement a Poisson spike generator and plot spike trains as a raster plot.
Raster plot matlab how to#
I spent the first couple of hours teaching students (undergraduates) how to simulate neural spike trains given the firing rate of a neuron.

I recently taught a 3 hour class as part of the Quantitative Biology Workshop at MIT.
