Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.

how can solve this issue with the compiler
I use a sine-wave source connected to embedded matlab function with same function input equal output then connected to the scope. easy model
when run this model i get error: Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.

 採用された回答

A Jenkins
A Jenkins 2014 年 2 月 19 日
You need to setup your compiler.
As the error suggests, go to to the MATLAB command line and type
mex -setup
For more information: Selecting a Compiler

4 件のコメント

ehsan
ehsan 2014 年 7 月 12 日
hi, i could configure mex -setup and successfully get it recognized and chosen. yet the error persists and I can't use matlab function block. please help it's really urgent
Steve
Steve 2015 年 1 月 27 日
hi, I have the same problem. What did you do to fix this issue ? thanks :)
What happens when you type:
mex -setup
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win64.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

タグ

質問済み:

2014 年 2 月 19 日

コメント済み:

2015 年 2 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by