In the previous post we were talking about repmat function in MEX format. We can reach further improvements if replace forward-backward procedure with C implementation (MEX format). The source code for the forward-backward in C can be found in PMTK which is a collection of Matlab/Octave functions, written by Matt Dunham, Kevin Murphy.
The results see below (with the same initial conditions):

Without MEX fwdbck procudure

forward-backward MEX
Leave a Reply