How to use 'mex -setup' to select a supported C-compiler?

when i start simulation error occur : (Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler)

Answers (1)

In Mtlab widows command type:
mex -setup
Depending on the Matlab version you are using, search in Google for this
Supported and Compatible Compilers – Release 2015a (or precise your version)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Asked:

on 22 Apr 2016

Edited:

on 22 Apr 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!