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
대략 6시간 전
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
대략 5시간 전
채택된 답변
추가 답변 (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!