MATLAB Answers

Can't find MEXOPTS.BAT file

23 views (last 30 days)
Sapio L
Sapio L on 26 Oct 2015
Edited: Thorsten on 26 Oct 2015
Hi everybody,
I try to follow installation steps in this link below and run any .cpp file in a directory.
I run command mex-setup C++ and get "finish successfully" message.
However, can't find and edit MEXOPTS.BAT file in a corresponding directory.

Answers (1)

Thorsten on 26 Oct 2015
It is located in
[matlabroot filesep 'bin']
Note that it is called on MacOS and Linux.
Thorsten on 26 Oct 2015
mex -v yourfile.c
and look for the output after
-> sourced from directory (DIR = $PREF_DIR)
For me it is located in myhomedir/.matlab/mymatlabrelease/

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!