example data for the paper published on biorxiv
https://www.biorxiv.org/content/early/2018/01/11/246744
%%%%%%%%%%%
data structure (containing two structures, one for R and the other for VR):
eegData: a structure containing headers and data for each standard-rate eeg channel
trialData: a structure giving the trial start and end time in seconds
posData: a structure containing the pos file header and the raw LED data as well as the post-processed data which includes position, direction, speed, and acceleration.
spikeData: an array of structures, one for each tetrode
There are two variables for cell indexes:
idx4gcells, cell indexes for all simultaneously-recorded grid cells
idx4pcells, cell indexes for all simultaneously-recorded place cells
Each row is a set of indexes for a cell, with the 1st column indicates the tetrode number and the 2nd column shows the cell number of the cell.
%%%%%%%%%%%
To get time stamps for a specific cell (e.g. the 1st grid cell in the R trial), you can do the following in Matlab:
trialtype = 1; % 1 is a R trial; 2 is a VR trial
trial = data(trialtype);
cellno = 1;
tetrodeno = idx4gcells(cellno, 1);
cellno = idx4gcells(cellno, 2);
sp = trial.spikeData(tetrodeno);
spikeTimes = sp.timestamp(sp.cut==cellno,1);