permissions test matlab script