A hidden Markov model for the decoding and analysis of replay in spike trains
Marc Box, Matt W. Jones and Nick Whiteley.
Click here
for the Matlab files.