How is Matlab GUI generated?

3 views (last 30 days)
Peter Borda
Peter Borda on 18 Dec 2014
Answered: Joseph Cheng on 18 Dec 2014
It's just a general question I was thinking about recently.
What is the mechanism of GUI's creation used by Matlab if we use GUIDE? How is the handles structure generated? What is the order in which the individual objects are added to the figure?

Accepted Answer

Joseph Cheng
Joseph Cheng on 18 Dec 2014
I would say the best method to figure out how GUIDE works is to break points in the OpeningFcn() section of your GUIDE GUI. At this point you can peek at the handles structure and see the order inwhich things were created. As you would do for any struct the order is basically the same order inwhich you plopped it down in GUIDE. If you are looking to go away from GUIDE but use GUIDE to layout you can see my submission here
on how to use GUIDE to help layout a GUI such that you can try to recreate it.

More Answers (0)

Categories

Find more on Migrate GUIDE 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!