- Save the workspace variables in the model workspace or a data dictionary.
- If you want to use the base workspace itself, then define the variables in any relevant callback functions of the model.
In Simulink, when an SLX file is loaded, the workspace variables are not populated
조회 수: 2 (최근 30일)
이전 댓글 표시
In Simulink, when I load one of my saved SLX files, the workspace variables do not get populated.
This forces me to create them manually, to make the model functional.
What am I missing here ?
댓글 수: 0
채택된 답변
Anusha Sasidharan
2022년 5월 6일
Hi,
I understand that you want to retain the workspace variables that you created for the model.
You could try one of these approaches:
Here are some documentation topics for this:
Thanks,
Anusha
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!