1. Install Microsoft SDK 7. 1 (Only if 2nd step fail)
http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1
2. Write on Matlab
mex -setup
http://www.mathworks.com/help/matlab/matlab_external/changing-default-compiler.html