fcfx.m
来自「多元统计程序包」· M 代码 · 共 156 行
M
156 行
function varargout= fcfx(varargin)
% FCFX M-file for fcfx.fig
% FCFX, by itself, creates a new FCFX or raises the existing
% singleton*.
%
% H = FCFX returns the handle to a new FCFX or the handle to
% the existing singleton*.
%
% FCFX('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in FCFX.M with the given input arguments.
%
% FCFX('Property','Value',...) creates a new FCFX or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before fcfx_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to fcfx_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 fcfx
% 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', @fcfx_OpeningFcn, ...
'gui_OutputFcn', @fcfx_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
% End initialization code - DO NOT EDIT
if nargin<=1
fig=openfig('fcfx.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 fcfx is made visible.
function fcfx_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 fcfx (see VARARGIN)
% Choose default command line output for fcfx
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes fcfx wait for user response (see UIRESUME)
% uiwait(handles.fcfx);
% --- Outputs from this function are returned to the command line.
function varargout = fcfx_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('fcfx1.fig','reuse');
handles1=guihandles(fig1);
guidata(fig1,handles1);
set(handles.checkbox2,'enable','on')
set(handles.checkbox1,'value',0)
elseif p2==1
fig2=openfig('fcfx2.fig','reuse');
handles2=guihandles(fig2);
guidata(fig2,handles2);
set(handles.checkbox1,'enable','on')
set(handles.checkbox2,'value',0)
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 % --------------------------------------------------------------------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('fcfx_help.fig','reuse');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?