Here is an alpha version of the MATLAB code:

BOCPD

Warning: it may have missing files and be out of date.
We will soon verify that this is not the case.

Concerns should be sent to rt324 in the domain of cam.ac.uk