topics - functions - index - search

TransNetGeoHistPicSound.m

function[EGISFileMat,NetFileMat]=TransNetGeoHistTmp(NetFileMat,TRStatus,...
PreTrig,PostTrig,ReTrig,GainFilePath,ZeroFilePath,OldZeroVersion,...
NGainZeroString,SpecCondVec,NStep,NDefTrials,SimpleTrig,DSample,DMeanSampleStatus)
DSample gives the number of points to downsample
DSample =[] or DSample=0 or DSample=1 result in no downsampling
Using DSample=2 every other value (1,3,5,7...) will be taken (if DMeanSampleStatus=0)
if DMeanSampleStatus=1 the program takes the mean of the 1st and 2nd, 3rd and 5th etc.
SampRate is therefore the od SampRate divided by the DSampleValue
Take DSample=2 to sample down from 500 to 250 Hz or 250 to 125 Hz
Take DSample=4 to sample down from 500 to 125 Hz