Matlab GUI to scroll through plots/images

11 visualizaciones (últimos 30 días)
Dries Weytjens
Dries Weytjens el 13 de Mzo. de 2017
Respondida: Jan el 13 de Mzo. de 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!

Respuestas (1)

Jan
Jan el 13 de Mzo. de 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

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by