MATLAB: How to get mex -setup

windows 10 64 bit

Error using mex No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016b/win64.html.

Best Answer

As you can see in the link you have posted, the list of supported compilers is: 2016b: Supported Compilers.
Install one of them and then mex can find it. MinGW and the Windows SDK7.1 are available for free. Problems during the installation of teh SDK7.1 have been discussed frequently in this forum, so please use the search function.
Related Question