Spike Toolbox

STCreateSinusoid
Create a sinusoidally changing frequency spike train definition

Syntax
[stTrain] = STCreateSinusoid(fMinFreq, fMaxFreq, tPeriod) [cstTrain] = STCreateSinusoid(vfMinFreq, vfMaxFreq, vtPeriod)

Description
STSinuoid will create a spike train definition, in which the spiking frequency changes sinusoidally with time. fMinFreq and fMaxFreq specify the minimum and maximum frequencies to use in the spike train. tPeriod specifies the period of the frequency profile sinusoid. stTrain will comprise of a field definition containing the spike train definition.

One or more of the input arguments may optionally be supplied as an array. In this case, cstTrain will be a cell array of spike trains, with the parameters for each taken element-wise from the input array arguments. Any scalar arguments will be duplicated for all elements in the cell array of spike train definitions.

See Also
Spike train definitions, Generating spike trains, STCreate


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