Azzera filtri
Azzera filtri

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

7 visualizzazioni (ultimi 30 giorni)
In real time workshop How many ways can we create a user-defined-data types..can anyone explain me..
  2 Commenti
Walter Roberson
Walter Roberson il 9 Giu 2012
To check: are you asking about dates, or are you asking about data-types ?
swaraj
swaraj il 11 Giu 2012
Data -Type @ walter Roberson

Accedi per commentare.

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 11 Giu 2012
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 Commenti
Tim
Tim il 15 Giu 2012
Don't you also have to register the respective data type via sl_customization.m?
Kaustubha Govind
Kaustubha Govind il 21 Giu 2012
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by