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

📄 inputdlg2.m

📁 含有多种ICA算法的eeglab工具箱
💻 M
字号:
% inputdlg2() - inputdlg function clone with coloring and help for %               eeglab().%% Usage:%   >> Answer = inputdlg2(Prompt,Title,LineNo,DefAns,funcname);% % Inputs:%   Same as inputdlg. Using the optional additionnal funcname parameter %   the function will create a help button. The help message will be%   displayed using the pophelp() function.%% Output:%   Same as inputdlg%% Note: The advantage of this function is that the color of the window%       can be changed and that it displays an help button. Edit %       supergui to change window options. Also the parameter LineNo%       can only be one.%% Author: Arnaud Delorme, CNL / Salk Institute, La Jolla, 11 August 2002%% See also: supergui(), inputgui()%123456789012345678901234567890123456789012345678901234567890123456789012% Copyright (C) Arnaud Delorme, CNL / Salk Institute, arno@salk.edu%% This program is free software; you can redistribute it and/or modify% it under the terms of the GNU General Public License as published by% the Free Software Foundation; either version 2 of the License, or% (at your option) any later version.%% This program is distributed in the hope that it will be useful,% but WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the% GNU General Public License for more details.%% You should have received a copy of the GNU General Public License% along with this program; if not, write to the Free Software% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA% $Log: inputdlg2.m,v $% Revision 1.10  2002/10/24 17:14:36  arno% typo%% Revision 1.9  2002/08/19 22:21:25  arno% new windows% size%% Revision 1.8  2002/08/13 21:42:48  arno% undo debug%% Revision 1.7  2002/08/13 21:42:34  arno% debug%% Revision 1.6  2002/08/13 18:21:02  arno% auto vert/horiz%% Revision 1.5  2002/08/12 16:18:28  arno% removing last modif%% Revision 1.4  2002/08/12 16:17:49  arno% 2 lines%% Revision 1.3  2002/08/12 16:03:48  arno% vertical gui if only 1 input%% Revision 1.2  2002/08/12 02:16:43  arno% help debug%% Revision 1.1  2002/08/12 02:13:42  arno% Initial revision%function [result] = inputdlg2(Prompt,Title,LineNo,DefAns,funcname);if nargin < 4   help inputdlg2;   return;end;	if nargin < 5	funcname = '';end;	if length(Prompt) ~= length(DefAns)	error('inputdlg2: prompt and default answer cell array must have the smae size');end;geometry = {};listgui = {};% determine if vertical or horizontal% -----------------------------------geomvert = [];for index = 1:length(Prompt)	geomvert = [geomvert size(Prompt{index},1) 1];  % default is vertical geometryend;if all(geomvert == 1) & length(Prompt) > 1	geomvert = []; % horizontalend;for index = 1:length(Prompt)	if ~isempty(geomvert) % vertical		geometry = { geometry{:} [ 1] [1 ]};	else		geometry = { geometry{:} [ 1 0.6 ]};	end;	listgui = { listgui{:} { 'Style', 'text', 'string', Prompt{index}}  ...				{ 'Style', 'edit', 'string', DefAns{index} } };end;result = inputgui(geometry, listgui, ['pophelp(''' funcname ''');'], Title, [], 'normal', geomvert);

⌨️ 快捷键说明

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