title: Matlab simulink Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler
body: <p>I have a model in matlab simulink. I have installed matlab in D drive. When I run my model I get the following error:</p>
  
  <pre><code>Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
  Use 'mex -setup' to select a supported C-compiler.
  </code></pre>
  
  <p>This is not a syntax or semantics. How can I solve this? Thanks</p>