changed mex flag -output