MATLAB Answers

Changing text of subsystem according to textbox

2 views (last 30 days)
Okagan
Okagan on 9 Feb 2020
Edited: stozaki on 9 Feb 2020
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.

  0 Comments

Sign in to comment.

Accepted Answer

stozaki
stozaki on 9 Feb 2020
Edited: stozaki on 9 Feb 2020
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 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products


Translated by