R, Python and MATLAB code
This code is written by Johan Dahlin and it is available here.
Relevant paper
Johan Dahlin and Thomas B. Schön. Getting started with particle Metropolis-Hastings for inference in nonlinear dynamical models. November, 2015. [arXiv]