Code / Jamie

Roitman Mfiles


Fig 7 Mfiles

These mfiles use the single data file, T1RT.mat.gz to plot figure 7 from the Nov 2002 Journal of Neuroscience article.

lip_rt_roit_fig_7.m Main mfile to plot the figure. This file takes the data from a rather raw form, and creates the PSTHs that are then plotted, so depending on the speed of your machine, this file may take quite a while to run.

The file above (lip_rt_roit_fig_7.m) depends on the following files, so make sure these files are also on your path:

  • makePSTH_excl100_200.m produces the PSTHs that the figure plots.
  • ColumnNames608.m script that associates column numbers and names, and gives some comments as to what is in each of the columns.
  • nanrunmean.m computes the running mean of n values left and right of each value of z, respecting nans.
  • nans.m makes an array of nans, analogous to matlab functions ones and zeros.

Example for manipulating structure in rest of Roitman data files

sampleScript.m This script has lots of general information about the data structure used in all of the Roitman data files except for datfile specifically for making Fig 7, and shows how to use the data structure to produce raster plots.