spCreateRateChannel
spCreateRateChannel creates rate channels from event data
Example:
channels=spCreateRateChannel(fhandle, InputName1, InputValue1,....)
channels=spCreateRateChannel(channels, InputName1, InputValue1,....)
where fhandle is a valid sigTOOL data view handle.
If fhandle is provided on input the data view will be updated
with the new channels on completion
channels is a sigTOOL channel cell array
Valid input options are:
Sources A list of channnels to use as source for the
input events (scalar or vector)
Targets A list of channel numbers to use as the output targets
(scalar or vector)
Start The start time for the conversion (scalar in seconds)
Stop The stop time for the conversion (scalar in seconds)
BinWidth The binwidth to use for counting spikes. This
determines the effective sample rate in the target
channel: a bin width of 1ms corresponds to a sample
rate of 1kHz (scalar in seconds)
Scaling A string, either:
'count' Results will be returned as events/bin
or
'rate' Results will be scaled to events/second
Windowcoeff A vector of window coefficients which will be used to filter
the result. This must be of odd-length and symmetrical
to avoid phase-shifts.
Note that data in the adcarray of the target channel may be a sparse
double precision vector.
See also adcarray
-------------------------------------------------------------------------
Author: Malcolm Lidierth 04/08
Copyright © The Author & King's College London 2008-
-------------------------------------------------------------------------