How can I use a Simulink AliasType to cast a constant in a Stateflow Chart

1 回表示 (過去 30 日間)
Brian
Brian 2017 年 6 月 20 日
I have defined a Simulink AliasType as follows:
FloatAlias = Simulink.AliasType; FloatAlias.Description = ['Float Alias type for floating type flexibility ' ... 'is the optimized type.']; FloatAlias.DataScope = 'Exported'; FloatAlias.HeaderFile = ''; FloatAlias.BaseType = 'single';
How am I able to use this "Data Type" to cast a constant assignment within a Stateflow Chart?
When I try to cast 0 with FloatAlias(0), I receive an "Unresolved symbol" error and the Symbol Wizard pops up and asks me to resolve the symbol, what do I do next?

回答 (0 件)

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by