How to use S-function in MATLAB Command

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

답변 (1개)

Madhu Govindarajan
Madhu Govindarajan 2015년 12월 17일
이동: Sabin 2022년 12월 18일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

제품

질문:

2015년 11월 24일

이동:

2022년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by