Info

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

How do I use button settings from guide GUI to establish independent variables to be used in my code?

1 view (last 30 days)
I need to use several radio button groups in my GUI that will determine what my code will compute. I was hoping there's a way to simply evaluate the button settings, get corresponding values, and let the code handle the rest. But apparently it's not so simple. Is there a way to obtain these values without using callbacks for each group? I want to default to the top button in each group in case no (different) selection is made.
I don't want a new output each time a new radio button is selected. I want a separate button that runs the code once all selections have been made.
  1 Comment
Jan
Jan on 27 Mar 2019
The question is not clear. Are you using GUIDE, AppDesigner or do you create the GUI programmatically? Why do you want to avoid Callbacks? For obtaining the values, you do not need callbacks, but using them is not hard.
Please post the relevant part of the code. We cannot guess, what you are doing, so suggesting a matching method is impossible.
"I don't want a new output each time a new radio button is selected" - What is a "new output"? Why should such an output occur anywhere when you select a button?

Answers (0)

Tags

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!