Rasterplot
Version 1.0.0.0 (1.84 KB) by
Rajiv Narayan
Plotting Routine to display neural spike trains
RASTERPLOT.M Display spike rasters.
RASTERPLOT(T,N,L) Plots the rasters of spiketimes (T in samples) for N trials, each of length L samples, Sampling rate = 1kHz. Spiketimes are hashed by the trial length.
RASTERPLOT(T,N,L,H) Plots the rasters in the axis handle H
RASTERPLOT(T,N,L,H,FS) Plots the rasters in the axis handle H. Uses sampling rate of FS (Hz)
Example:
t=[10 250 9000 1300,1600,2405,2900];
rasterplot(t,3,1000)
Cite As
Rajiv Narayan (2026). Rasterplot (https://se.mathworks.com/matlabcentral/fileexchange/10000-rasterplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Electrophysiology in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
