Setting .m file to Radio Button in GUI Creator
Show older comments
Hey there,
I am currently trying to make a GUI interface using the built-in MATLAB builder. I want to set 4 separate radio buttons to 4 separate functions, so that by selecting one, the "analysis type" is selected by the user.
I also want these functions to read the data that has been exported into the GUI through a .xlsx file. I have the import command set for this, just need those radio buttons to read the data.
Any help would be appreciated.
Thanks everyone!
1 Comment
Walter Roberson
on 1 Dec 2015
As a matter of user interface design:
Radio buttons are used to select between options, but they do not typically trigger actions (other than perhaps to change the set of optional parameters that are available to be filled in.)
When you want to trigger action such as "Analyze the data using analysis type #3" then you should use push buttons instead of radio buttons.
Radio buttons can trigger actions, and can be used to trigger data analysis, but this is not their role in user interfaces. Remember that when you select a particular radio button, it stays selected (unless you deliberately reset it), which would prevent you from selecting that same analysis type a second time in a row, which is not a problem for push buttons.
Accepted Answer
More Answers (0)
Categories
Find more on Update figure-Based Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!