Sample accompanying MATLAB codebase for: "2-Step Temporal Bayesian Networks (2TBN): filtering, smoothing, and beyond." Technical Report TRCIM1030, McGill U., 2014. www.cim.mcgill.ca/  ̃anqixu/pub/2TBN.TRCIM1030.pdf.