Changing text of subsystem according to textbox

2 ビュー (過去 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 Center および File ExchangeSubsystems についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by