Block Parameters are Always Deleted

2 ビュー (過去 30 日間)
Roberto Louis Moran
Roberto Louis Moran 2020 年 12 月 10 日
編集済み: Fangjun Jiang 2020 年 12 月 10 日
I created parameters in the block parameter options for several transfer functions and gains. I opted to save each one on 'Base Workspace'. Everytime I close the project, Matlab deletes the parameters and I have to do everything all over again.
How do I prevent that?

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 12 月 10 日
編集済み: Fangjun Jiang 2020 年 12 月 10 日
That is expected behavior. I don't know why it was designed that way. To avoid the problem, do either one of these:
  1. Create the variable in Model workspace, it will be saved with the model.
  2. Create the variable in a Simulink Data Dictionary, it will be saved to a .sldd file.
  3. Save the workspace variable to a .mat file before closing MATLAB. Next time, load the .mat file first.
  4. Export the workspace variable to a .m file before closing MATLAB. Next time, run the .m file first.

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by