フィルターのクリア

Why Enumerated data type creation is not supported in Model Workspace?

5 ビュー (過去 30 日間)
MILI
MILI 2023 年 10 月 13 日
回答済み: Suman 2024 年 6 月 27 日
In MATLAB R2018b,
In model Workspace, there is no option available in object creation for Enumerated data type :
Also I would like to know if there is any possibility to define Enumeration in Model Workspace.

回答 (1 件)

Suman
Suman 2024 年 6 月 27 日
Hi MILI,
If you need to use enumeration data types in model workspace, you may use the following workarounds:
1) Copy data from base workspace to model workspace:
2) Change MATLAB variable's data type to enum type
  • Add a new MATLAB variable from Model Explorer toolstrip in model workspace
  • Assign the value of that variable to the enum class value. It will change the data type of the variable to enum.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by