필터 지우기
필터 지우기

How can I remove the error?

조회 수: 2 (최근 30일)
ali khodaparasti
ali khodaparasti 2013년 6월 20일
Hi. I have a problem when I run simulink that has MPC controller block. It notice the error: " Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler. " what should I do??? tnx.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 6월 20일
As the error message suggests, you need to run the mex -setup command to select a C compiler. If the utility does not automatically locate any installed compilers, you need to install a Supported Compiler (look against your release and platform), restart MATLAB and try running mex -setup again.
  댓글 수: 2
ali khodaparasti
ali khodaparasti 2013년 6월 21일
hello Kaustubha Govind...! tnx for your help,but the strange thing is that although I installed "The Microsoft Visual C++ 2010 Redistributable" on my system,but also I confront this error. A question: How should I try running " mex -setup " ??? tnx a lot.
Vishal Rane
Vishal Rane 2013년 6월 21일
run
mex -setup
in the matlab command window. Refer mex

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Plant Specification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by