create copies of the same gui under different tabs

14 次查看(过去 30 天)
Hello everyone,
I'm new to matlab's app designer and making guis. I have made a gui for plotting a bunch of heatmaps in a way i like them, but during experiments, i need to look at multiple such GUI plots and potentially even combine them into a single plot. Currently I have been opening mulitple instances of the same gui using run xxx, and loading different data into each for their respective plots. I was wondering if I can use something like tabs within a single app window (like a browser), where i can open multiple independent instances of the same GUI (so i can load different data into each tab manually) and also have the ability to share some data across these mutliple instances - say to get an aggregate plot over 2-3 tabs. In other words, I just need help with making multiple copies of the same gui so i can avoid having to rewrite / copy paste multiple call back functions for each tab.
Thanks in advance !!
  3 个评论
Aravind Krishna
Aravind Krishna 2021-4-20
Hi Michael,
Thanks for your response!
I literally tried that exact option you suggested before asking the question. My issue is exactly as you pointed out: MyButton and MyButton_2 is a problem because then I have to assign all the same call back functions once again in the code view. If I have 10-15 different call backs for tab1 then I have to rewrite a bunch of code that will replicate exactly the callbacks for tab2 since the variable names/ plot axis names etc are different.
What I was hoping to get it is by duplicating the tab, I get 2 copies of the same gui with identical functions and callbacks that operate independently , I e. MyButton_2 (from the duplicated tab) copies the callback property of MyButton from the first tab. That would save me a whole lot of time since I'm planning to duplicate the tab atleast 4 times.
Adam Danz
Adam Danz 2021-4-20
编辑:Adam Danz 2021-4-20
> I just need help with making multiple copies of the same gui
The goal is unclear. A gui is just a guided/graphical user interface. So it's unclear what you want to copy. It's also unclear why you need to copy something rather than developing it within app designer.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by