qihongl / PrioritizedReplay

Code accompanying the paper: Mattar, M. G., & Daw, N. D. (2018). Prioritized memory access explains planning and hippocampal replay. bioRxiv, 225664.

Home Page:https://www.biorxiv.org/content/early/2018/01/03/225664

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prioritized memory access explains planning and hippocampal replay

Code accompanying the paper: Mattar, M. G., & Daw, N. D. (2018). Prioritized memory access explains planning and hippocampal replay. bioRxiv, 225664.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for testing purposes.

Prerequisites

To run this code you will need MATLAB 2016a or newer.

Give examples

Simulation code

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

Running the simulation

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Code accompanying the paper: Mattar, M. G., & Daw, N. D. (2018). Prioritized memory access explains planning and hippocampal replay. bioRxiv, 225664.

https://www.biorxiv.org/content/early/2018/01/03/225664

License:MIT License


Languages

Language:MATLAB 93.7%Language:Mathematica 6.3%