Hi guys,
i have problem with simulink as when i run my simulink model the message comes up on matlab: (Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.)
just to know it works fine in other computer
any idea plz
Thanks and Regards
Magdi

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 1 月 24 日

0 投票

Run "mex -setup" and select a supported compiler that Simulink can use. Then run the model again. Also, ensure that you have already installed a supported compiler. Find the list of supported compilers for each release here: http://www.mathworks.com/support/sysreq/previous_releases.html

1 件のコメント

Magdi Nabi
Magdi Nabi 2012 年 1 月 27 日
hi
i did run mex-setup after install C++ express and SDK and i got this error ( Could not find the compiler "cl" on the DOS path.
Use mex -setup to configure your environment properly)
could you please help me with this
thanx and regards

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

その他の回答 (1 件)

Magdi Nabi
Magdi Nabi 2012 年 1 月 25 日

0 投票

thanx for your help, and actually i found that my computer does not has C++ and SDK and i did down load them and the previous error disappear but i got another error ( something related to s-function and i dont have s-function on my model!!)
thank you again for your cooperation
Magdi

1 件のコメント

Magdi Nabi
Magdi Nabi 2012 年 2 月 9 日
thanks for your help problem solved

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

カテゴリ

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

タグ

質問済み:

2012 年 1 月 24 日

編集済み:

2013 年 10 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by