필터 지우기
필터 지우기

S- function does not exist

조회 수: 28 (최근 30일)
Islam Elnady
Islam Elnady 2017년 4월 17일
답변: jack zhang 2019년 6월 7일
When I try to run a demo Simulink model in the Aerosim Blockset, I got an error "S-Function 'sfunwmm' does not exist" I searched in the Aerosim directory and I indeed find the "sfunwmm.c" file there! I tried to re-compile it but mex command failed, I got error like "undefined reference to `InitGeomag' and some other variables.
I'm on: MATLAB R2017a Supported compiler: MW_MinGW_4_9

답변 (2개)

jack zhang
jack zhang 2019년 6월 2일
I have the same qustion , Please solve this question? Can you share method that you solve the question
  댓글 수: 1
Islam Elnady
Islam Elnady 2019년 6월 4일
Hi Jack,
Try this:
  • Open Matlab as an administartor.
  • Navigate to the "sfunwmm" directory in Matlab.
  • Then type:
mex sfunwmm.c wmmutil.c -I../common

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


jack zhang
jack zhang 2019년 6월 7일
Thank you !!!

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by