Also improve on e42cf2e5b4 for the compatbilitity with MATLAB < R2016a in occbin.write_regimes_to_xls.m.
e42cf2e5b4