dytj_importdata_help.m

来自「多元统计程序包」· M 代码 · 共 122 行

M
122
字号
function varargout = dytj_importdata_help(varargin)% DYTJ_IMPORTDATA_HELP Application M-file for dytj_importdata_help.fig%    FIG = DYTJ_IMPORTDATA_HELP launch dytj_importdata_help GUI.%    DYTJ_IMPORTDATA_HELP('callback_name', ...) invoke the named callback.% Last Modified by GUIDE v2.0 27-Oct-2003 22:35:49if nargin == 0  % LAUNCH GUI	fig = openfig(mfilename,'reuse');    set(fig, 'Name', '帮助');	% Use system color scheme for figure:	set(fig,'Color',get(0,'defaultUicontrolBackgroundColor'));	% Generate a structure of handles to pass to callbacks, and store it. 	handles = guihandles(fig);	guidata(fig, handles);     str = {'' sprintf('\n') ,....        '        在使用本套软件的任何一个多元统计方法之前,建立您的原始数据文件。您有两种方式建立数据文件:',...        sprintf('\n')....            '一、 建立扩展名为 mat 的数据文件',....        '        首先,在命令窗口里预定义一个您所要存储数据的变量,然后再打开数组编辑器,输入所有的原始数据保存在',...        '刚才定义的变量里。最后定义一个数据文件(扩展名为 mat),把这个变量保存到刚才定义的数据文件里。',...        '        例如:保存一个原始数据,它是一个25行,12列的矩阵。我们先定义一个数据变量 jlfx_data,把这个变量 jlfx_data',...        '保存在一个名为 jlfx_data.mat 的数据文件里。首先,在命令窗口里键入以下命令:',...        '>> jlfx_data = zeros(25, 12);',...        '>> openvar(''jlfx_data''); ',....        '这样便打开了数组编辑器,现在可以往里面键入数据,输入完数据,关闭数组编辑器。现在数据变量 jlfx_data 及其它',...        '的值便保存在工作空间里了。在命令窗口里键入以下命令就可以了:',...        '>> save  jlfx_data  jlfx_data 或者 >> save  jlfx_data.mat  jlfx_data',....        '这样我们便完成了我们想要做的工作,把变量 jlfx_data 的值保存在 jlfx_data.mat 文件中了。如果下次我们想要得到',...        '一个 mat 文件里保存的值,我们可以打开一个 mat 文件,如我们刚才建立的 jlfx_dadta.mat 文件,我们可以在命令窗',...        '口里键入以下命令:',...        '>> load  jlfx_data.mat (其中的 .mat 可以省略)',....        '>> jlfx_data',...        '这样数据变量 jlfx_data 的值便在命令窗口里显示出来了。',.....        sprintf('\n')....        '二、 建立扩展名为 m 的数据文件',....        '        首先,进入 M 文件的编辑器与编译器。可以选择 Malab 主菜单中【New】子菜单,然后选择下一级子菜单中的',...        '【M-file】就进入了 M 文件编辑器和编译器。',...        '        然后,在编辑器窗口中键入您的原始数据。这里必须注意,输入的数据必须以矩阵的格式,不必键入变量名。',....        '例如:保存一个原始数据,它是3行,5列的矩阵。我们打开 M 文件的编辑器与编译器,在编辑器窗口中键入:',....        '1  2  3  4  5',...        '2  3  4  5  6',....        '3  4  5  6  7',....         sprintf('\n')....        '或者键入:',....        '1  2  3  4  5;',...        '2  3  4  5  6;',...        '3  4  5  6  7;',...         sprintf('\n')....        '可以键入:',...        '1  2  3  4  5 ; 2  3  4  5  6 ; 3  4  5  6  7 ;',...         sprintf('\n')....        '也可以键入:',...         sprintf('\n')....        '1 , 2 , 3 , 4 , 5 ; 2 , 3 , 4 , 5 , 6 ; 3 , 4 , 5 , 6 , 7 ;',....         sprintf('\n')....        '上面的各种键入的效果是一样的。'};    set(handles.dytj_importdata_listbox, 'String', str);        	if nargout > 0		varargout{1} = fig;	endelseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK	try		if (nargout)			[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard		else			feval(varargin{:}); % FEVAL switchyard		end	catch		disp(lasterr);	endend%| ABOUT CALLBACKS:%| GUIDE automatically appends subfunction prototypes to this file, and %| sets objects' callback properties to call them through the FEVAL %| switchyard above. This comment describes that mechanism.%|%| Each callback subfunction declaration has the following form:%| <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN)%|%| The subfunction name is composed using the object's Tag and the %| callback type separated by '_', e.g. 'slider2_Callback',%| 'figure1_CloseRequestFcn', 'axis1_ButtondownFcn'.%|%| H is the callback object's handle (obtained using GCBO).%|%| EVENTDATA is empty, but reserved for future use.%|%| HANDLES is a structure containing handles of components in GUI using%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This%| structure is created at GUI startup using GUIHANDLES and stored in%| the figure's application data using GUIDATA. A copy of the structure%| is passed to each callback.  You can store additional information in%| this structure at GUI startup, and you can change the structure%| during callbacks.  Call guidata(h, handles) after changing your%| copy to replace the stored original so that subsequent callbacks see%| the updates. Type "help guihandles" and "help guidata" for more%| information.%|%| VARARGIN contains any extra arguments you have passed to the%| callback. Specify the extra arguments by editing the callback%| property in the inspector. By default, GUIDE sets the property to:%| <MFILENAME>('<SUBFUNCTION_NAME>', gcbo, [], guidata(gcbo))%| Add any extra arguments after the last argument, before the final%| closing parenthesis.% --------------------------------------------------------------------function varargout = dytj_importdata_listbox_Callback(h, eventdata, handles, varargin)

⌨️ 快捷键说明

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