Matlab GUI to scroll through plots/images

10 views (last 30 days)
Dries Weytjens
Dries Weytjens on 13 Mar 2017
Answered: Jan on 13 Mar 2017
Hello,
I know this is a question that has appeared before but I did not grasp the answers completely.
I am currently running simulations for a master's thesis that always result in either ternary of binary plots. For the sake of analysis and comparison between plots I have the idea of loading in different images or plots in a GUI and using a slidebar to scroll through the images so that I could analyse the trend that manifests itself better (the change of the profiles plotted in the graphs).
I have already looked up some code and I think I have a basic understanding of how GUI works and is coded but I have no idea on how to start coding this.
Thank you for the help and kind regards!

Answers (1)

Jan
Jan on 13 Mar 2017
Start with deciding, if you want to use Matlab's tool GUIDE for creating the GUI or if you program it by your own. Due to some pitfalls and incompatibilities I prefer the programmatical approach, but many other use GUIDE.
In both cases the GUI is created at first with some decisions: Where should which element occur? How should the GUI look after resizing? How are the data imported and the results exported? Such questions can be solved with a pen and paper efficiently.
After the elements have been implemented, it is time to program the callbacks - the functions which are evaluated, when the GUI elements are activated. Here the "communication" between the callbacks is not trivial. Serach for "share data between callbacks" in this forum.
If you decide to create the dialog programmatically, you find valuable instructions here: https://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!