changing order of arguments in logexp_mfile to match the mex version