Spike Toolbox

STPlotInstFreq
Plot instantaneous spiking frequency of a spike train

Syntax
<[hFigure]> = STPlotInstFreq(stTrain), <'instance' / 'mapping'>, <'plain' / 'interp' / 'smooth', tWindow> )

Description
stTrain is a valid spike train, containing either an instance or a mapping. PlotOptions are as supplied to the matlab PLOT function. This can be used to change the colour of a plot, insert markers, etc. See the documentation for PLOT for syntax.

If the optional arguments 'instance' or 'mapping' are provided, then the corresponding spike train level from stTrain will be plotted. If neither are provided, then instances will be used in preference to mappings.

STPlotInstFreq is capable of constructing three types of graph. 'plain' (default) plots a horizontal line connecting two spikes, the height of which corresponds to the ISI defined by the two spikes. The precise time of each spike is shown.

'interp' blends ISIs using a 1/t function. This method is sampled in time, using either the minimum ISI or 10 msec as a sampling rate, whichever is greater. Individual spike times may not be precisely identifiable.

'smooth' provides a temporal moving average of the 1/t sampled graph. The optional argument tWindow specified the length of the sliding window over which the instantaneous frequency will be averaged. If tWindow is not specified, it will default to five samples.

If required, the figure handle will be returned in hFigure.

STPlotInstFreq will create a graph with time in Seconds along the x axis and frequency in Hertz along the y axis. Both axes are linear.

See Also
STProfileFrequency


$Id: TEMPLATE.html 1783 2005-08-31 21:05:51Z dylan $