psth

Make plots of mean firing rate across trials as a function of time relative to a marker, e.g., stimulus onset.

Options

The output type (on the third line of the .nda file) can be

Parameters

Examples are given below.

Example

#  
#  Post-stimulus time histogram.
#
psth
all
simple

start 0
period 2000
binsize 1
sigma 2.0

Example

#  
#  Post-stimulus time histogram.
#
psth
group 0
histogram

start 0
period 2000
binsize 100

Example

#
#  Power spectrum of PSTH
#
psth
all
power

binsize 5         # PSTH binsize (affects the *range* of the frequency axis)
                  #    e.g, 5ms = 200Hz, thus a 0-100 Hz frequency range
                  #    will apply to the resulting power spectrum

pwr_win_size 256  # Window size (this affects *frequency* binsize
                  #  but *not* the frequency range
                  #  E.g., there will be 256 bins from 0 to cutoff, thus, your
                  #  freq. resolution (or power binsize) is 100Hz/256 = 0.39Hz

pwr_zero_mean 1   # 1-Subtract mean from PSTH;  0-Do not subtract mean.

Example

psth
group 1 stn
simple

start -500
period 16000

var_start_param stn
var_start_mult  1000.0   # Convert seconds to msec
var_start_add    100.0   # Account for st0 = 100ms (added after mult)

binsize 1
sigma   4.0