⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hgui.asv

📁 多元统计程序包
💻 ASV
字号:
function varargout= hgui(varargin)
% HGUI M-file for hgui.fig
%      HGUI, by itself, creates a new HGUI or raises the existing
%      singleton*.
%
%      H = HGUI returns the handle to a new HGUI or the handle to
%      the existing singleton*.
%
%      HGUI('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in HGUI.M with the given input arguments.
%
%      HGUI('Property','Value',...) creates a new HGUI or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before hgui_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to hgui_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help hgui

% Last Modified by GUIDE v2.5 24-Oct-2003 13:33:44
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @hgui_OpeningFcn, ...
                   'gui_OutputFcn',  @hgui_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
% End initialization code - DO NOT EDIT
if nargin & isstr(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end

if nargin<=1
fig=openfig('hgui.fig','reuse');
handles=guihandles(fig);
guidata(fig,handles);
if nargin>0
    varargout{1}=fig;
end
elseif ischar(varargin{1})
    try
        [varargout{1:nargout}]=feval(varargin{:});
    catch
        disp(lasterr);
    end
end
% --- Executes just before hgui is made visible.
function hgui_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to hgui (see VARARGIN)

% Choose default command line output for hgui
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes hgui wait for user response (see UIRESUME)
% uiwait(handles.hgui);


% --- Outputs from this function are returned to the command line.
function varargout = hgui_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in checkbox1.function checkbox1_Callback(hObject, eventdata, handles)% hObject    handle to checkbox1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of checkbox1c1=get(handles.checkbox1,'value');
if c1==1
    set(handles.checkbox2,'enable','off');
else
    set(handles.checkbox2,'enable','on');
end         
% --- Executes on button press in checkbox2.function checkbox2_Callback(hObject, eventdata, handles)% hObject    handle to checkbox2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of checkbox2c2=get(handles.checkbox2,'value');
if c2==1
    set(handles.checkbox1,'enable','off');
else
    set(handles.checkbox1,'enable','on');
end         % --- Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)p1=get(handles.checkbox1,'value');
p2=get(handles.checkbox2,'value');
if p1==1
    fig1=openfig('hgui1.fig','reuse');
    handles1=guihandles(fig1);
    guidata(fig1,handles1);
    set(handles.checkbox2,'enable','on')
    set(handles.checkbox1,'value',0)
elseif p2==1
    fig2=openfig('hgui2.fig','reuse'); 
    handles2=guihandles(fig2);
    guidata(fig2,handles2);
    set(handles.checkbox1,'enable','on')
    set(handles.checkbox2,'value',0)
end
end
% --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton2 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)close all% --------------------------------------------------------------------function uimenu_Callback(hObject, eventdata, handles)% hObject    handle to uimenu (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function um_item_Callback(hObject, eventdata, handles)% hObject    handle to um_item (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)openfig('hgui_help.fig','reuse');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -