Code generation ignores my matlab function in simulink

조회 수: 1 (최근 30일)
Aaron Hamilton
Aaron Hamilton 2022년 2월 18일
댓글: Denis Gurchenkov 2022년 2월 22일
I have a matlab function which has one input and no output. I get some data from inport into this function and dump those variables into global variables that already exists in the workspace. However, Simulink code generation completely skips this matlab function and I'm not sure how to force it to go through those assignments.
Goal: I'm trying to update some variables that are used throughout the model using inports.
  댓글 수: 1
Denis Gurchenkov
Denis Gurchenkov 2022년 2월 22일
Hi Aaron, it is hard to figure out the problem without seeing an example. Do you have a simple model that you can attach, along with the reproduction steps?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by