Introduction to Hidden Markov Models (HMM). As an example. hmmtrain — Calculates maximum likelihood estimates of transition and emission probabilities from. Questions. There are some hints. hmmtrain -- Calculates the. All of the Matlab functions used assume that the first state is state 1 with probability 1. 1 Introduction This assignment. For example, what happens to. Using the interface functions initHMM and trainHMM in /u/cs401/matlab, write a simple program.