GivenaNEVfile,anchannelnumber,andaunitnumberthisfunctionwillreturnindicescorrespondingtothosespikes,timestampscorrespondingtothosespikes(optional),andsnippetscorrespondingtothosespikes(optional).Use[timestampssnippetsindices]=findEventTimes(NEV,Channel,Unit)INPUTSNEV:ThiscorrespondstotheNEVfilethedesireddataisbeingextractedfrom.Channel:Thechannelnumberthedataisbeingextractedfor.Units:Theunitnumbersthedataisbeingextractedfor.Thisvariablecanbeoneunitormanyunitspassedasanarrayofintegers.DEFAULY:Ifunitsisnotspecifiedalltimestampsfromallunitswillbepassedtothecallingfunction.Fornoisepass255.OUTPUTindices:Anarrayofallindicesthatcorrespondtoneuraldataforchannelandunitpassed.timestamps:Anarrayofalltimestampsthatcorrespondtoneuraldataforchannelandunitpassed.snippets:Amatrixofallindicesthatcorrespondtoneuraldataforchannelandunitpassed.IFOUTPUTISNOTSPECIFIEDonly"timestamps"WILLBEPASSEDTOTHECALLINGFUNCTION.Example:[timestampssnippetsindices]=findEventTimes(NEV,3,[1,3:5]);Intheexampleabove,theindices,timestamps,andsnippetsforchannel#3 and units 1, 3, 4, and 5 will be passed to the callingfunction.KianTorabktorab@blackrockmicro.comBlackrockMicrosystemsSaltLakeCity,UTVersion2.0.0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%