how to read List of Spike Times pvc_2 data in matlab?
how to read List of Spike Times pvc_2 data in matlab?


hi
in the readme.pdf file, it is said that "To get the spike train data, use fget_spk.m to load the *.sa0 files". but, I cannot use them, please tell me how to read the Spike Times whit *.sa0 format in matlab.
Thanks!
Re: how to read List of Spike Times pvc_2 data in matlab?

The script is located in file:
"crcns-pvc2-matlab-files.zip"
Which is in the downloads folder for the data set.
To use it, first make sure it's in your MatLab path. It's used like this:
# display current directory
>> pwd
ans =
crcns-pvc2/2D_noise_natural/Spike_and_Log_Files/030605.A.b02
# display files in directory
>> ls
030605.A.b02cequalpower_B3.log 030605.A.b02dequalpower_B3.sa0
030605.A.b02cequalpower_B3.sa0 030605.A.b02eequalpower_B3.log
030605.A.b02dequalpower_B3.log 030605.A.b02eequalpower_B3.sa0
# load spike times and header metadata for .sa0 file
>> [events, hdr] = fget_spk('030605.A.b02cequalpower_B3.sa0','y');
# events will then contain the spike times.
>> size(events)
ans =
3465 1
>> events(1:5)
ans =
860
2327
4168
4184
6045