Code for 2015 eLife paper "Independent theta phase coding accounts for CA1 population sequences and enables flexible remapping" https://elifesciences.org/content/4/e03542
This Matlab function generates spiking and rate activity for a population of independent place cells as an animal runs along a linear track. The code allows for different running speeds, accelerations, place field maps and theta phase offsets.