>> mex -setup
Warning: Legacy MEX infrastructure is provided for compatibility; it will be removed
in a future version of MATLAB. For more information, consult the MEX release notes
http://www.mathworks.com/help/matlab/release-notes.html.
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mexsh -setup' command selects an options file that is
placed in /Users/haipz/.matlab/R2014b and used by default for 'mexsh'. An options
file in the current working directory or specified on the command line
overrides the default options file in /Users/haipz/.matlab/R2014b.
To override the default options file, use the 'mexsh -f' command
(see 'mexsh -help' for more information).
The options files available for mexsh are:
1: /Applications/MATLAB_R2014b.app/bin/mexopts.sh :
Template Options file for building MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1):