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.
http://xanthippi.ceid.upatras.gr/people/evangelidis/matlab_opencv/
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
Thorsten on 26 Oct 2015
It is located in
[matlabroot filesep 'bin']
Note that it is called mexopts.sh on MacOS and Linux.
  2 Comments
Thorsten
Thorsten on 26 Oct 2015
Try
mex -v yourfile.c
and look for the output after
-> mexopts.sh 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!