필터 지우기
필터 지우기

Update InitFCN with GUI

조회 수: 1 (최근 30일)
mtr
mtr 2013년 2월 27일
Hi,
I have a model that has a variable defined in the InitFcn. I also have a GUI that takes an input from the user. Is it possible to update the variable in the InitFcn with the new value from the GUI?
I tried this code but the set_param command replaces all my InitFcn variables instead of updating them.
LO = get(handles.textbox, 'string');
set_param('myModel','InitFcn',LO);
Anyone have any suggestions?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by