I want to run my matlab script and dump that code into simulink
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Abderrahim. B
2022-11-24
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:
https://www.mathworks.com/help/simulink/ug/what-is-a-matlab-function-block.html#responsive_offcanvas
Hope this helps
3 个评论
Abderrahim. B
2022-11-24
Math Function block performs numerous common mathematical MATLAB build-in functions. To call custom function inside simulink you need to use MATLAB function.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!