필터 지우기
필터 지우기

Are sim and other similar functions code generateable?

조회 수: 1 (최근 30일)
Joshua Ford
Joshua Ford 2021년 1월 28일
댓글: Walter Roberson 2022년 11월 8일
I am attempting to generate code from a MATLAB model that calls Simulink models using functions akin to sim? Is it possible to generate c code from this structure and from sim like functions?
Any help would be great thanks.
Cheers,
Josh

답변 (1개)

Tushar Behera
Tushar Behera 2022년 11월 8일
Hi Joshua,
I understand that you want to generate c code for a MATLAB Script with commands such as “sim”.
The 'sim' command is not supported for MATLAB Coder. For more information on MATLAB Language Features Supported for C/C++ Code Generation please refer to the documentation:
Thanks,
Tushar Behera
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 11월 8일
Though relatively recently, support for sim() got added for compilation; see https://www.mathworks.com/help/slcompiler/ug/generate-modify-and-deploy-a-matlab-app-for-a-simulink-model.html
This is MATLAB Compiler and Simulink Compiler, not MATLAB Coder and Simulink Coder, so it is not exactly what the user was asking for... but might perhaps have happened to be usable for the user's needs.

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

카테고리

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