Simulink Mask Parameter
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi, There is the possibility to change the value of a mask parameter from matlab? For instance i'd like to make the number of the iteration of this block programmable.. Thank you
댓글 수: 0
채택된 답변
Paulo Silva
2011년 9월 5일
For example one Subsystem called Subsystem on a model called untitled, SG is one mask variable, to change that variable do this:
set_param('untitled/Subsystem','SG','10') %now the variable is equal to 10
If you change with the model running you need to update the simulation
set_param('untitled', 'SimulationCommand', 'update')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Author Block Masks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!