using mex -setup error

5 views (last 30 days)
zhang qi
zhang qi on 28 Jan 2015
when i use this command in matlab,error:Error using mex (line 206) .Unable to complete successfully.but i already set up the sdk,there is no effect.
Muhammed Ali Erbir
Muhammed Ali Erbir on 6 Dec 2018
you have to install visual studio including "C++ destop app" option
then retry in MATLAB mex -setup and show compiler in the list to select
compiler for matlab.PNG

Sign in to comment.

Answers (1)

Matz Johansson Bergström
Matz Johansson Bergström on 28 Jan 2015
As the error message says you are missing a suitable compiler to create mex files. See mathworks Mex files.
Titus Edelhofer
Titus Edelhofer on 28 Jan 2015
take a look at the list of supported compilers, choose one and install it. Then run mex -setup again.

Sign in to comment.


Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!