I am getting the below mentioned problem when I am simulating "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."

1 回表示 (過去 30 日間)
I am getting the below mentioned problem when I am simulating "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 6 日
Shailesh, as the msg implies you need to tell MATLAB which compiler should be used. Which, of course, means that there needs to be at least one compiler installed on your system. Then simply run
mex -setup
in the command window and choose the/a compiler.

その他の回答 (1 件)

Alexander
Alexander 2014 年 2 月 6 日
If you run "mex -setup" from the matlab command line it should give you the option to specify a compiler, if you have one. If you don't already have one installed, you can download and install the Microsoft SDK or Visual C++ express.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by