mathlab simulink function error?

hello guys im new with this matlab. i just want to try to run the simulation i have in the forum but i got this error
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
can u help me what should i do?

답변 (2개)

Walter Roberson
Walter Roberson 2012년 10월 4일

0 개 추천

What happened when you commanded
mex -setup
at the MATLAB command window?
zewl elena
zewl elena 2012년 10월 4일

0 개 추천

it shows this,
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n?

댓글 수: 6

Walter Roberson
Walter Roberson 2012년 10월 4일
And when you told it to go ahead and locate the installed compilers?
zewl elena
zewl elena 2012년 10월 4일
it shows this:
Error using mex (line 206) Unable to complete successfully.
Walter Roberson
Walter Roberson 2012년 10월 4일
Hmmm. Have you installed the 64 bit compiler and SDK 7.1 as indicated in the link mentioned above, http://www.mathworks.com/support/compilers/R2011b/win64.html
zewl elena
zewl elena 2012년 10월 4일
i have install microsoft sdk and still got the same problem.. huhu any idea?
Walter Roberson
Walter Roberson 2012년 10월 4일
Please show the entire transcript of your attempt to mex -setup . Perhaps someone will recognize something in the details.
zewl elena
zewl elena 2012년 10월 4일
just like this: Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2011b/win64.html
Error using mex (line 206) Unable to complete successfully.
do u think i should uninstall n install again?

이 질문은 마감되었습니다.

질문:

2012년 10월 4일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by