[recData,timestamps]=read_SpikeGadgets_trodeChannels(filename,NumChannels,channels,samplingRate,headerSize,configExists))ImportschanneldatainmatlabfromtherawdatafileINPUTSfilename--astringcontainingthenameofthe.datfile(rawfilefromSDcard)NumChannels--thenumberofchannelsintherecording(i.e.,32,64,96...)channels--thechannelsyouwanttoextract(extractingallchannelsatoncemayoverloadmemory)numbers1-120whichbelongtoeach4ofthe30tetrodessamplingRate--thesamplingrateoftherecording,i.e30000headerSize--thesize,inint16's, of the header block of the data(containsDIOchannelsandauxanalogchannels).calculatedfrom(MCUnumbytes+ECUnumbytes+1)/2=17OUTPUTStimestamps--thesystemclockwheneachsamplewastakenrecData--anNbyMmatrixwithNdatapointsandMchannels(Misequaltothenumberofchannelsintheinput)