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

📄 msgbox.m

📁 Variable Reduction Testbench通过对变量进行相关性分析来实现减少变量的目的。
💻 M
字号:

function varargout = msgbox(varargin)

% -------------------------------------------------------------------------
% this code is part of the 'Reduction Testbench' suite
% developed by A. Manganaro, R. Todeschini, A. Ballabio, D. Mauri
% 2006 - Milano Chemometrics and QSAR Research Group
% -------------------------------------------------------------------------
%
%
% MSGBOX M-file for msgbox.fig
%      MSGBOX, by itself, creates a new MSGBOX or raises the existing
%      singleton*.
%
%      H = MSGBOX returns the handle to a new MSGBOX or the handle to
%      the existing singleton*.
%
%      MSGBOX('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in MSGBOX.M with the given input arguments.
%
%      MSGBOX('Property','Value',...) creates a new MSGBOX or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before msgbox_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to msgbox_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% INIT code 
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @msgbox_OpeningFcn, ...
                   'gui_OutputFcn',  @msgbox_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
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


% --------------------------------------------------------------------


function msgbox_OpeningFcn(hObject, eventdata, handles, varargin)
%  Executes just before msgbox is made visible.
% 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 msgbox (see VARARGIN)

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

movegui(handles.msgbox_form,'center');

if (length(varargin)>0) & iscell(varargin(1))
    cur_str = varargin{1};
elseif (length(varargin)>0) & isstr(varargin(1))
    cur_str = varargin(1);
else
    cur_str = '[error, no message!]';
end    

set(handles.msg_text,'String',cur_str);

% Update handles structure
guidata(hObject, handles);


% --------------------------------------------------------------------


function varargout = msgbox_OutputFcn(hObject, eventdata, handles)
% Outputs from this function are returned to the command line.
% 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;



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% GUI objects HANDLERS
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ok_button_Callback(hObject, eventdata, handles)% Executes on button press in ok_button.
% hObject    handle to ok_button (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)close(handles.msgbox_form);

⌨️ 快捷键说明

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