Any good documentation on programming a GUI without GUIDE or App Designer?
Show older comments
Like it says in the title, I need to learn how to create a GUI solely from matlab scripts. Any sources you know of would be greatly appreciated (especially if their free!)
6 Comments
"Any good documentation on programming a GUI...?"
Yes! The MATLAB documentation explains how all MATLAB GUI functions work, and is complete with working examples:
Spend a few minutes browsing the contents on the left-hand side: you will find lots of useful information on related topics, and note the hierarchical contents structure. The MATLAB documentation is the only source of information you need to know how to program MATLAB GUI's yourself.
The more you practice using the MATLAB documentation the easier it will be for you to find information quickly in it. I would not recommend that you learn from any third-party websites or books: in my experience these are invariably out-of-date, or contain some major flaws in what they teach.
William Edwards
on 1 Nov 2017
Adam
on 1 Nov 2017
I favour classes when I am writing a programmatic UI, though functions can work too if you really really want, but you can't do anything very worthwhile with scripts. A UI should ideally be detached from the things that it does, which is almost impossible with scripts alone. It can be done with functions though I'd rather bang my head on a brick wall personally!
The GUI Layout Toolbox is excellent for enhancing your programmatic GUIs and making them easier to layout also.
William Edwards
on 2 Nov 2017
per isakson
on 6 Nov 2017
Excellent tutorial from Rik:
Answers (2)
Jan
on 6 Nov 2017
1 vote
See these excellent examples from Matt:
Dr. Kelsey Joy
on 14 Apr 2022
1 vote
I posted a sample code for creating a GUI without GUIDE on File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/110100-tic-tac-toe-game-gui-without-guide-pvp-or-pvc-option
I also have a set of YouTube videos that walk through how this code was developed: https://youtube.com/playlist?list=PLmB_c16LoAcWxSnGEBn_BEGGk0GDmR4Zg
Categories
Find more on Structures 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!