Matlab GUI to scroll through plots/images
11 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
回答(1 个)
Jan
2017-3-13
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!