Model Settings / Configuration parameters updating using script
조회 수: 4 (최근 30일)
이전 댓글 표시
For the automated simulation purposes, I need to update Model Settings / Configuration parameters updating using script. Mainly Input and Start time, Stop time. Is there any option how to do it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1617698/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1617703/image.png)
댓글 수: 0
답변 (1개)
Fangjun Jiang
2024년 2월 15일
set_param(mdl,"StartTime","10","StopTime","40")
Hover your mouse over the property (e.g. Input), right click, select "What's this?". It will bring up a help page where you can find the programming property name. Then use get_param() and set_param().
참고 항목
카테고리
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!