S- function does not exist

14 次查看(过去 30 天)
Islam Elnady
Islam Elnady 2017-4-17
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 中查找有关 Call MATLAB from C 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by