How do i write a gui with sub guis?
5 views (last 30 days)
Show older comments
Our class has a project. There are 3 tanks holding 3 different liquids. There needs to be a gui so that a user can select the size of their cup(there are 4 different sizes), then select what percentage of each liquid they want in their cup. If there is no cup detected then something needs to display an error. And if the percentages don't add up to 100% than an error needs to be displayed.
I'm new to making guis, so i have no idea how to do this.
0 Comments
Answers (1)
Image Analyst
on 30 Mar 2016
Here's a nice GUI framework what will work for you: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
It has radio buttons for the 4 cups, scrollbars/sliders to select the amount of liquid, and a pushbutton that you can start off your simulation with. Just delete the controls you don't want/need, and add more of those you do, like 4 radio buttons instead of 3, and you should be ready to go.
0 Comments
See Also
Categories
Find more on Naming Conventions 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!