Call a Matlab function in Simulink for later code generation
显示 更早的评论
Hello!
I need to use a MATLAB function in my Simulink project.
The problem is that this function needs to call other functions and load data from *.mat files (see image).
I also need to generate the code using Simulink Coder and Embedded Coder.
Which technique should I adopt from the answer below ?

2 个评论
Oliver Jaehrig
about 6 hours 前
What exact issue are you facing?
Calling a function should work, when the file is on the search path.
When loading a mat-file you could use:
coder.load
Thank you for further feedback.
Dimitri
about 6 hours 前
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!