MATLAB Answers

0

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

Asked by Tarun Jhamnani on 2 Aug 2018
Latest activity Answered by TAB
on 6 Aug 2018
The closest alternate will be Structure of structure using bus in Simulink.

  0 Comments

Sign in to comment.

1 Answer

Answer by TAB
on 6 Aug 2018
 Accepted Answer

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.

  0 Comments

Sign in to comment.