This is a fork of <https://bitbucket.org/nikratio/mlabwrap> to fix some bugs.