updated matlab interface