MATLAB: Do I need a C-cpmplier

c-compliererrorsimulinkstateflow

i got this message when i was trying to run my simulink/stateflow models "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler." what can i do to solve this problem?

Best Answer

Hi,
Did you type mex -setup in your command window?
If Matlab does not find a compiler, you need to install one.
Here are two useful links:
Related Question