create copies of the same gui under different tabs

15 views (last 30 days)
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 Comments
Aravind Krishna
Aravind Krishna on 20 Apr 2021
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 on 20 Apr 2021
Edited: Adam Danz on 20 Apr 2021
> 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.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!