How can I implement a custom datatype in Simulink model So, that the generated code is same as Union datatype in C.

 채택된 답변

TAB
TAB 2018년 8월 6일
As far as I know, Simulink never generates Union for any built-in data class.
For your requirement, you need to create your own data class and custom staorage class.
Check cscdesigner in your matlab help.

추가 답변 (1개)

카테고리

도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2018년 8월 2일

답변:

2022년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by