From your link it appears that you are using MATLAB 2011a on Windows 7 x64. If this is not true please respond with your version of MATLAB. Nevertheless I will address issues for both prior to 2012a and post and for both x86 and x64.
- Your problem may be related to Microsoft KB 2519277, if you had previously installed Microsoft Visual C++ 2010 Express (VS 2010 Express) and Windows SDK 7.1, and then later applied the Service Pack 1 Compiler Update. The solution is to download and install this update: VC-Compiler-KB2519277.exe.
- You may not have Windows SDK 7.1 installed at all. According to this list of supported compilers for MATLAB 2011a (x64), MATLAB 2011a only supports VS 2010 Express if it used with Windows SDK 7.1. Here is a nice step-by-step solution posted by MathWorks. Note: You may still need to install the Visual C++ SP1 Compiler Update for Windows SDK 7.1. See the link to KB 2519277 above.
- If you have MATLAB 2012a or later, then the problem is that VS 2010 Express is not supported in MATLAB 2012a or later, although Microsoft Visual C++ 2010 Professional is still supported, and Windows SDK 7.1 is now supported by itself. See the list of supported compilers for MATLAB 2012a (x64). You do not need VS 2010 Express.
- Windows x86 versions of MATLAB 2011b and earlier do not require Windows SDK 7.1, that is they work with VS 2010 Express. However Windows x86 versions of MATLAB 2012a and later only use Windows SDK 7.1, similar to the x64 versions, and do not require VS 2010 express. Unfortunately there is an issue installing Windows SDK 7.1 when VS 2010 SP1 has already been installed which is also described in KB 2519277 (see above). The preferred method of installation is (1) Visual C++ 2010 (Express or Professional), (2) Windows SDK 7.1, (3) Visual C++ 2010 SP1, (4) the Visual C++ SP1 Compiler Update for Windows SDK 7.1. If you try to install Windows SDK 7.1 after installing SP1, then you will get a "fatal error" when it attempts to install the C++ compilers. Ugh! The workaround is to uncheck the "C++ compilers" box and rerun the installation. Then after the installation is complete run the Visual C++ SP1 Compiler Update for Windows SDK 7.1.
Please consult the appropriate list of supported compilers for all x86 versions of MATLAB. However