Data and code from our 2018 manuscript on relative value signaling in NAc and VP.
All figures can be reproduced by downloading the RAW.mat structure following the MATLAB scripts in alphabetical order. We have also uploaded the additional structures produced by these scripts as were used in the manuscript.
The scripts require additional functions contained in the "Supporting Programs" folder in the scripts folder. They were created on MATLAB R2016b.
The code was altered to use a fixed bin width for making PSTHs instead of the optimal bin width as used in the paper. The optimal bin width code is from Howard Fields's lab and can be acquired upon reasonable request.