MATLAB: How to instal an compiler in Matlab

mex compiler

Hello
I have matlab R2013a and I would like to use a compiler to use code written in C
I've donwloaded: Microsoft Windows SDK for Windows 7 and .NET Framework 4 and looked up the compiler using the mex – setup command but I get following notification:
||Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2013a/win64.html
The same link from where I've downloaded my compiler. Does it matter in which directory I locate my compiler? Are there other steps between downloading and selecting a compiler in matlab?
Thanks

Best Answer

Microsoft's VC/VC++ compiler will suit most needs. Download MS VC++ (I think its free) . Install it, then put your mex -setup in MATLAB prompt.
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PRO~
[2] Microsoft Visual C++ 2008 Express in C:\PRO~
[0] None
Compiler:
You can choose the compiler from it.
By the way, you should have an LCC compiler by default. Why do you miss it?
Related Question