Teaching material and code examples for reinforcement learning and algorithmic models used to solve classic problems and as computational description of recorded behavior (all codes are in Matlab).
Disclaimer: I usually run through the code several times before publishing it and especially the parts that have been used in a course/workshop have been commented, but do let me know if you find any bug or have any particular question. Please consider I am not a programmer, but a cognitive neuroscientist, so these examples do not represent the best possible practice for coding.
By the way, if you think there is a better way to code the same functions or if you simply want to share your code, please feel free to comment!