フィルターのクリア

mex-set up error in matfunction simulink

4 ビュー (過去 30 日間)
Cheku Dorji
Cheku Dorji 2012 年 9 月 21 日
Hi, i am using MatlabR2011b in the window 7 64 bit laptop- sony bio. I want to include in a Simulink model a block called "Matlab Function" in which I wrote a simple function with the m-file editor. When I try to run my model I have this error:
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 21 日
編集済み: Azzi Abdelmalek 2012 年 9 月 21 日
You are using windows 7 64 bits, then depends on how you have installed matlab, 32 bits or 64 bits.
  1. If 32, after mex -setup you will have at least LCC (just choose it),
  2. If 64, you will not have LCC, you must install sdk 7.1 with ms visual c++ express , or ms visual studio http://www.mathworks.com/support/compilers/R2011b/win64.html

TAB
TAB 2012 年 9 月 21 日
Run command
>> mex -setup
on your command window. It will list all matlab supported c/c++ compiler installed on your computer (I will show at least one compiler LCC which comes with matlab by default).
Choose the completer and run your simulation again.
  2 件のコメント
Cheku Dorji
Cheku Dorji 2012 年 9 月 21 日
i don't know which to choose plz guide me.
TAB
TAB 2012 年 9 月 21 日
See Azzi's answer for "Which compilers to choose".

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

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by