Use Union Datatype in Simulink

version 1.0.0 (22.4 KB) by Muthukumar Ganesan
Simulink doesn't generate Union datatype but the same can be imported into Simulink

13 Downloads

Updated Sat, 20 Aug 2022 18:16:51 +0000

View License

Objective: Use union datatype in Simulink model
Simulink doesn't support union datatype whereas the same can be imported from C file
  1. Define a Bus which is similar to the required Union datatype
  2. Configure the scope of bus as imported and define the corresponding header file
  3. Define the union datatype in the header file mentioned

Cite As

Muthukumar Ganesan (2022). Use Union Datatype in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/116520-use-union-datatype-in-simulink), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!