MATLAB: How to solve this error as mentioned- “Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use ‘mex -setup’ to select a supported C-compiler”

simulink

Error-Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
My laptop is Windows 8(genuine) 64 bit. I am trying to run my code in MATLAB R2013a which is having State flow charts and S function parameter block. I have gone through the matlab forums to get the solution for this but it is not working. please suggest me the correct way to solve this.

Best Answer

What happens when, at the MATLAB command line, you give the command
mex -setup
Related Question