An implementation of hidden Markov models in MATLAB.