필터 지우기
필터 지우기

how to access value from gui to simulink subsystem for mask resistor ????

조회 수: 2 (최근 30일)
i want to change my resistor value from gui... i gave for example set_param('MyModel/MySubsystem/MyBlock','resistance','10'); but it shows Myblock does not have resistance parameter.. help me to solve this problem

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 13일
편집: Azzi Abdelmalek 2015년 6월 13일
To get the reals names of your parameters type
get_param('MyModel/MySubsystem/MyBlock','DialogParameters')
The name of the parameter you want to change is R, not resistance.
set_param('MyModel/MySubsystem/MyBlock','R','10')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by