########################################################
 >> Costa et al. 2015 [1] <<
 >> Code for running savings simulation (Figure 3) <<

 url: http://modeldb.yale.edu/184487
########################################################


0. To run the model you need Brian neural simulator installed [2] and for plotting the figure as in the paper Matlab [3]. There is some preliminary plotting available within the Python script.

1. Run file prepostSTDP_savings.py in Python, which will store the simulated data in the folder fromBrian/

2. For plotting run file X.m in Matlab. This will use the data generated by the Python script, which is saved in folder fromBrian/

Note: This code is not optimized for efficiency :)


References:
[1] - Costa RP, Froemke RC, Sjöström PJ and van Rossum MCW - Unified pre- and postsynaptic long-term plasticity enables reliable and flexible learning - eLife 2015; 10.7554/eLife.09457
[2] - http://briansimulator.org/  plus numpy and matplotlib
[3] - http://uk.mathworks.com/products/matlab (tested on version 2014a, the plotting needs to be adjusted for later versions)