MATLAB: Mex -setup does no find Microsoft Visual C++ Express 2010

-setup2010cexpressmexvisual

My Matlab 2013a needs Microsoft Visual C++ 2008, 2010, or 2012. Microsoft Visual C++ Express 2010 is free so I installed that. However mex -setup does not find it.
Is there an option file to edit to point to this compiler? I found c:\users\jwf10\AppData\roaming\MathWorks\Maltab\R2013a\mexopts.bat.
This looks right, but I do not know the compiler flags for Visual C++ Express 2010.

Best Answer

None of the VS Express compilers have been supported for a fair number of years now. See http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win32 for the compilers supported in your version. Notice there that the no-charge SDK 7.1 is supported, so I recommend you install that.
Related Question