Code accompanying the paper: Liu, Y., Dolan, R. J., Kurth-Nelson, Z., Behrens, T. E. (2019) Human replay spontaneously reorganises experience. Cell, 178(3), 640-652.
The main simulation code is located in
simulate_Replay.m
This is to simulate high alpha power during resting, and show how to cope with it in the sequence analysis