MATLAB: How to solve the compiler issue in matlab

MATLAB Compiler

I am using matlab R2013a 64-bit version in windows 8.1. When i tried to simulate .m file,i got an error.The error is "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler".How can i solve this?

Best Answer

You read http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win64 and install SDK7.1 and NET 4.0, or you install Microsoft Visual C++ 2012 Professional, or you install Microsoft Visual C++ 2010 Professional SP1, or you install Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1. And then after you install one of those you run
mex -setup
Related Question