Simulink model and function file mexw32

My friend sent me his simulink poject with all files of it in mexw32 format. In project there is an embeded function block. When I try to run that project I'm taking errors like that "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
Can someone help me How can I run this simulink model without error. Should I copy mexw32 files to somewhere in matlab folder?

답변 (1개)

Zack Peters
Zack Peters 2013년 10월 29일
편집: Zack Peters 2013년 10월 29일

0 개 추천

The Embedded Function block generates a MEX file out of the MATLAB code that is in it. In order to successfully do so, it requires that a supported compiler has been properly setup for that installation of MATLAB.
As the error messages suggests, you can setup your compiler by typing
>> mex -setup
If you do not have a supported compiler installed on your machine, a list of supported compilers can be found here.
~Zack

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2013년 10월 29일

편집:

2013년 10월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by