Code covered by the BSD License  

Highlights from
Rasterplot

5.0

5.0 | 1 rating Rate this file 34 Downloads (last 30 days) File Size: 1.84 KB File ID: #10000
image thumbnail

Rasterplot

by Rajiv Narayan

 

15 Feb 2006 (Updated 16 Feb 2006)

Plotting Routine to display neural spike trains

| Watch this File

File Information
Description

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)

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
17 Feb 2006 Rajiv Narayan

Addendum:

Another common method of storing spike data is in matrix form, with ones denoting spikes and zeros denoting no spikes. Its easy to use to this format in rasterplot.

Example:
m=(rand(1000,10)>0.9);
rasterplot(find(m),10,1000)

08 Aug 2007 Tilman Kispersky

very useful

07 Feb 2012 Marco Buiatti

I agree very useful thanks.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Rajiv Narayan 22 Oct 2008 08:15:52
plotting Rajiv Narayan 22 Oct 2008 08:15:52
rasterplot Rajiv Narayan 22 Oct 2008 08:15:52
spike times Rajiv Narayan 22 Oct 2008 08:15:52
spike trains Rajiv Narayan 22 Oct 2008 08:15:52
neuroscience Rajiv Narayan 22 Oct 2008 08:15:52

Contact us at files@mathworks.com