フィルターのクリア

Creating a class with enum

1 回表示 (過去 30 日間)
Abe
Abe 2014 年 8 月 11 日
編集済み: Abe 2014 年 8 月 11 日
How do I set a Simulink inport/outport data type equal to an enum? If I try, it looks like I need to make an enum class.
After making an enum class, Simulink still doesn't offer my enum class as an option.
The code in my .m enum class file reads:
classdef DesiredBlockMovement < Simulink.IntEnumType
enumeration
Coast(0)
Lower(1)
Hoist(2)
end
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by