MATLAB: No supported compiler was found.

MATLABmex compiler

Upon trying to compile a file using mex, I receive the following error message:
Error using mex
No supported compiler was found.
I installed Visual Studio 2017 with support for C++ and actually
mex -setup C++
lets me choose my compiler.
Which additional diagnostics could I run in order to pin down the problem?

Best Answer

If you just run
>> mex -setup
it should present you with the compilers that Matlab can actually see. That should provide a clue.
Related Question