I want to run my matlab script and dump that code into simulink

I am trying to use a script and run in math function block but it is not executing a it is not a function it is script, so how do i run my script and use that output to operate the blocks in simulink. is there any library where we can dump the matlab script in simulnk.

답변 (1개)

Abderrahim. B
Abderrahim. B 2022년 11월 24일

0 개 추천

Hi!
I understand that you have a script that you want to use within a Simulink model. I recommend that you use MATLAB Function Block.
Below is the documentation of the block :
An example of how to use is in this link:
Hope this helps

댓글 수: 3

yes but we are unable to run that it is showing error like it seem to be ascript not function. in math function block we can only execute function right?
Math Function block performs numerous common mathematical MATLAB build-in functions. To call custom function inside simulink you need to use MATLAB function.

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

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

질문:

2022년 11월 24일

댓글:

2022년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by