How many ways can we create a user-defined-data type

2 次查看(过去 30 天)
In real time workshop How many ways can we create a user-defined-data types..can anyone explain me..

采纳的回答

Kaustubha Govind
Kaustubha Govind 2012-6-11
I know of three ways:
  1. Alias types using Simulink.AliasType
  2. Custom numeric types using Simulink.NumericType
  3. Structure types using Simulink.Bus
You can also define a Custom Storage Class if you want to introduce a new storage class specification. (examples of storage classes are static, volatile, etc.)
  3 个评论
Tim
Tim 2012-6-15
Don't you also have to register the respective data type via sl_customization.m?
Kaustubha Govind
Kaustubha Govind 2012-6-21
Yes, I do believe you need to do that, but I was only listing the several different techniques available. For more detailed information, the documentation should be consulted.

请先登录,再进行评论。

更多回答(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