Storage Class replaced to default AUTO.

2 ビュー (過去 30 日間)
creative
creative 2020 年 5 月 15 日
コメント済み: creative 2020 年 5 月 16 日
Hello,
I am facing a problem with the storage class asignned to parameters and signals for my model.
Once i close the project and reopen it , all the previously assigned storage classes for parameters and data are lost and replaced by default AUTO storage class.I assign the storage class through Model Data Editior and variables/parameters are declared in matlab workspace.
I think the assigned class should be stored with the model files and should not change after that.
How can i retain the assigned storage classes even after i close the project?

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 5 月 15 日
If the data is in MATLAB base workspace, they have to be saved separately, in .mat file or exported to .m file, although MATLAB won't remind you if you forgot to save.
If the data is in model workspace, they will be saved with the model.
If the data is in a Simulink Data Dictionary, they will be saved with the .sldd file. Usually, it will remind to save if the data has been changed.
  1 件のコメント
creative
creative 2020 年 5 月 16 日
So do you suggest that in order to retian the storage classes assigned to parameters, i should define the variables with its storage class in simulink data dictionary?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by