- Create the variable in Model workspace, it will be saved with the model.
- Create the variable in a Simulink Data Dictionary, it will be saved to a .sldd file.
- Save the workspace variable to a .mat file before closing MATLAB. Next time, load the .mat file first.
- Export the workspace variable to a .m file before closing MATLAB. Next time, run the .m file first.
Block Parameters are Always Deleted
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Model Editing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!