Effacer les filtres
Effacer les filtres

S- function does not exist

28 vues (au cours des 30 derniers jours)
Islam Elnady
Islam Elnady le 17 Avr 2017
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

Réponses (2)

jack zhang
jack zhang le 2 Juin 2019
I have the same qustion , Please solve this question? Can you share method that you solve the question
  1 commentaire
Islam Elnady
Islam Elnady le 4 Juin 2019
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

Connectez-vous pour commenter.


jack zhang
jack zhang le 7 Juin 2019
Thank you !!!

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by