필터 지우기
필터 지우기

Changing text of subsystem according to textbox

조회 수: 1 (최근 30일)
Okagan
Okagan 2020년 2월 9일
편집: stozaki 2020년 2월 9일
Hi everyone!
I have a subsystem like this;
I am using this code;
But I want to change this text according to textbox which is a parameter of this subsystem. For example;
In this condition I want to see "1000" on the subsystem block, not "example". And I want to change this text according to value of this textbox.
Thanks for help.

채택된 답변

stozaki
stozaki 2020년 2월 9일
편집: stozaki 2020년 2월 9일
I attached sample model.
If you use get_param and disp function, you can use it.
for example Gain value of Gain block.
v = get_param(gcbh,'Gain');
disp(v);

추가 답변 (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