I have a MATLAB GUI (MAIN GUI) which is used to run a simulation and the results are plotted in a separate GUI (Plotting GUI). I have used setappdata/getappdata meathod to transfer data between the GUI. Additionally user can have multiple instances of the plotting GUI (where results are plotted) to plot different signals. Though I have used setappdata to select the GCF (current figure) in the opening function of the Plotting GUI, the results are getting plotted in different GUI (ex. Results intended to be plotted on plotting GUI 2 are plotted in plotting GUI 1).
How can I ensure that the intended instace of the GUI is selected for plotting of results ?
Best Answer