updated matlab wrappers