How to use S-function in MATLAB Command
Afficher commentaires plus anciens
Hello, I have a given s-function that contains a model of a wind turbine. I have also designed a PID controller to control this turbine (model given as s-function) in Simulink. Now , I want to control the model (in S-function) with the same controller directly in MATLAB (using codes instead of simulink)
Please let me know if there is a way to run S-function in MATLAB Command.
Sincerely, Elham
Réponses (1)
Madhu Govindarajan
le 17 Déc 2015
Déplacé(e) : Sabin
le 18 Déc 2022
0 votes
As far as I know the mex files that get generated for a S-function block in Simulink cannot be called in MATLAB, so my guess is you will have to write the equivalent of this as a function in MATLAB.
Catégories
En savoir plus sur Block and Blockset Authoring dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!