我目前正在为我已经完成的m.file开发GUI. GUI将是一个具有多个页面的GUI,每个页面都是一个GUI.
在主GUI上,用户将在具有2个选项的单选按钮组上进行选择.根据选择,页面顺序将是Master GUI> GUI1> GUI2> GUI3或Master GUI> GUI1> GUI4> GUI5.
现在的问题是,每次我返回主GUI以更改单选按钮组上的选择时,它将重新打开所有GUI并关闭它们的可见性以再次隐藏它们(基本上当我第一次打开时程序执行的操作)它),这不是我想要的.作为一名新的MATLAB用户,我不知道为什么会这样.
以下是我的主gui的代码段:
function varargout = StartPage(varargin)
% STARTPAGE MATLAB code for StartPage.fig
% STARTPAGE, by itself, creates a new STARTPAGE or raises the existing
% singleton*.
%
% H = STARTPAGE returns the handle to a new STARTPAGE or the handle to
% the existing singleton*.
%
% STARTPAGE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in STARTPAGE.M with the given input arguments.
%
% STARTPAGE('Property','Value',...) creates a new STARTPAGE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before StartPage_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to StartPage_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose