MATLAB implementation of Hidden Markov Model with scalar continuous emission values