[Index for export/lyngby]
[indexones,indexzeros] = lyngby_splitonnoff(Pa,edgedrop)
lyngby_splitonnoff - Function to find the indices of the on/off scans.
function [indexones,indexzeros] = lyngby_splitonnoff(Pa,edgedrop)
Input: Pa The paradigm
edgedrop Scans to discard at the shifts of activation
Output: indexones Indices to 'on' scans
indexzeros Indices 'off' Scans
This function will return the indices of the scans that are
on/off - here assumed to threshold at 0 (normally binary
activation so no problem). The paradigm Pa will have its mean
subtracted by the function. The parameter EDGEDROP will drop
EDGEDROP scans at any change from on to off and likewise from
an off to an on condition.
Assumes base scans is first.
Cross-Reference InformationThis function calls
This function is called by
Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF