The -f
command-line argument to mex
allows to specify the location of the mexopts.sh
that we wish to use. But is there a way to tell Matlab to ignore mexopts.sh
? In order to compile a specific MEX file I need to specify CC
, CFLAGS
, etc., directly on the command line when invoking mex
. Values already given in mexopts.sh
cause a conflict and cause mex
to fail.
Thanks!