- Using ('model1',[ ]) as first name-value pair argument, you are opting to save the model named as “model1” to the same name.
- Using ('SaveModelWorkspace',false) as second name-value pair argument, you are choosing not to save the model workspace.
Save the Simulink model without saving model workspace
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to save the Simulink model "model1.slx" itself, not saving "model1.slx" within a new model. I don't want its model workspace saved, either. Am I doing right with the syntax below, by just leaving the newsys name blank [ ] ?
My Matlab version is 2020a.
save_system('model1',[],'SaveModelWorkspace',false)
댓글 수: 0
채택된 답변
Nitin Kapgate
2020년 10월 8일
The syntax you are using for the "save_system" command is correct for the functionality you are trying to achieve.
save_system('model1',[],'SaveModelWorkspace',false)
The effect of name-value pair arguments used in above command is explained below:
You can refer the documentation about saving the model to same name and saveModelWorkspace input argument to the save_system function.
댓글 수: 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!