Code accompanying the paper: Mattar, M. G., & Daw, N. D. (2018). Prioritized memory access explains planning and hippocampal replay. bioRxiv, 225664.
These instructions will get you a copy of the project up and running on your local machine for testing purposes.
To run this code you will need MATLAB 2016a or newer.
Give examples
The main simulation code is located in:
replaySim.m
Other files in the directory needed for running the simulation:
pAct.m
stNac2stp1Nr.m
gainTerm.m
needTerm.m
plotMazeWithArrows.m
To run the simulation, set the parameters on:
setParams.m
For an example of how to run a simulation from start to finish, after cloning the directory with all files, run:
runSimulation_openMaze.m
This project is licensed under the MIT License - see the LICENSE.md file for details