This is a basic Hidden Markov Model written in matlab. HMM.m consists of solutions to all 3 problems of hmm. Thanks! :)