Info

This question is closed. Reopen it to edit or answer.

Creating GUI for Step Signal Block

1 view (last 30 days)
Teo Samuel
Teo Samuel on 24 Feb 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
Is it possible to create a GUI that is able to set the final values for two step signal blocks?
If the answer is yes, then can I know how to do it and what are the essential steps to start?
Please help. Thank you very much.
Regards

Answers (1)

Kaustubha Govind
Kaustubha Govind on 24 Feb 2012
You can follow the documentation on creating GUIs in MATLAB.
Once you have done that, all you need to do is program the appropriate callback to run the set_param command on the two blocks. The command should be something like this:
set_param('modelname/path/to/block', 'After', '99')
Where 99 is the value you want to set for Final Value.

This question is closed.

Community Treasure Hunt

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

Start Hunting!