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

조회 수: 9 (최근 30일)
swaraj
swaraj 2012년 6월 9일
In real time workshop How many ways can we create a user-defined-data types..can anyone explain me..
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 6월 9일
To check: are you asking about dates, or are you asking about data-types ?
swaraj
swaraj 2012년 6월 11일
Data -Type @ walter Roberson

댓글을 달려면 로그인하십시오.

채택된 답변

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에서 Event Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by