The .fig file is binary and therefore I dare not bother edit it.
FIG file is a MAT file containing list of gui elements with properties you set in GUIDE.
How to set the visibility of a panel?
Assign a Tag to the element, you can access it using handles.mytag
like set(handles.mypanel, 'visible', 'off')
Furthermore, I had to create
each panel of the wizard separately. I was hoping that I could
manually combine the .m files into a wizard.m wrapper file, but I do
not think this is the right approach (at least for me, because I
cannot see how to do it).
You can not combine these automatically generated m-files into one, why would you want to anyway? Keep a .fig and .m file for each wizard page!
In lieu of using GUIDE I've seen examples where guis are created using the
"uicontrol" function. This approach seems tedious to me, because I
would have to manually code the position and size and defaults of each
button. Perhaps this is the best approach, but it intimidates me.
Using uicontrol
directly is not bad if you do not position elements manually but use a layout manager. You can see some here and here. If you want you GUI to be nicely resizable then layout manager is the only way to do it.
Does anyone have advice on this subject? Can anyone please point out
where I am going wrong or why I am having such difficulty?
Professional GUI programming is not easy, IMO is even the most difficult part at all.
Besides MATLAB GUI I have used both Java Swing and .NET WPF a lot, IMO MATLAB GUI is much easier, you can do 90% with 10% (learning) effort Sure, you still need time to become accustomed to it.
As a result I am unhappy with MATLAB for its seemingly clunky gui
tools and I am unhappy with myself for lacking the chops to overcome
this hurdle.
Yes, GUIDE is not the best solution but is probably the best technique to quickly create an GUI.
I've seen some fancy guis created in MATLAB and having attempted this
myself and falling way short I am baffled by their existence.
These GUI's are hacks exploiting MATLAB GUI particular details like visual separator being a long '__________' black text on a white uicontrol which is only two pixel high or different colors in tooltip by using html.
And after all you can use Java Swing in a MATLAB GUI (because it is actually derived from Swing)
I am now questioning whether a gui is worth the effort.
Yes, in your case keep it very simple, just the functionality, do not think about fancy stuff!