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

📄 dipfitdefs.m

📁 含有多种ICA算法的eeglab工具箱
💻 M
字号:
% dipfitdefs() - default settings and filenames for dipolefitting %                to source in the ICA/ERP package functions.%                Insert local dir reference below. %% Note: Edit this file to change local directories under Unix and Windows %% Author: Robert Oostenveld, SMI/FCDC, Nijmegen 2003% SMI, University Aalborg, Denmark http://www.smi.auc.dk/% FC Donders Centre, University Nijmegen, the Netherlands http://www.fcdonders.kun.nl% Copyright (C) 2003 Robert Oostenveld, SMI/FCDC roberto@miba.auc.dk%% 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: dipfitdefs.m,v $% Revision 1.16  2003/10/29 16:41:57  arno% default grid%% Revision 1.15  2003/10/29 03:42:55  arno% same%% Revision 1.14  2003/10/29 03:41:30  arno% meanradius%% Revision 1.13  2003/10/29 03:35:20  arno% remove elc computation%% Revision 1.12  2003/09/02 13:01:47  roberto% added default constraint for symmetry%% Revision 1.11  2003/08/01 13:49:49  roberto% removed 1 and 3 sphere defaults, renamed vol4besa to defaultvolume and added origin%% Revision 1.9  2003/06/13 16:48:22  arno% undo chanlocs checks%% Revision 1.8  2003/06/13 01:21:19  arno% still debuging auto conversion%% Revision 1.7  2003/06/13 01:01:34  arno% debug last%% Revision 1.6  2003/06/13 01:00:40  arno% convert polar to carthesian electrode location strcuture%% Revision 1.5  2003/03/12 10:32:12  roberto% added 4-sphere volume model similar to BESA%% Revision 1.4  2003/03/06 15:57:56  roberto% *** empty log message ***%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% this file is not a function but a script and is included in the dipfit_XXX functions%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%if ~isfield(EEG, 'chanlocs')  error('No electrode locations defined');endif ~isfield(EEG, 'icawinv')  error('No ICA components present');endnchan = length(EEG.chanlocs);ncomp = size(EEG.icawinv, 2);% create one-sphere model% defaultvolume.r = meanradius;% defaultvolume.c = 0.33;% defaultvolume.o = [0 0 0];% create three-sphere model% defaultvolume.r = meanradius * [0.0 0.92 0.88];% defaultvolume.c = [0.33 0.0042 0.33];% defaultvolume.o = [0 0 0];% create four-sphere model that is identical to the default of besadefaultvolume.r = [85-6-7-1 85-6-7 85-6 85];  % in mmdefaultvolume.c = [0.33 1.00 0.0042 0.33];    % brain/csf/skull/skindefaultvolume.o = [0 0 0];% constrain electrode to sphere% -----------------------------meanradius = defaultvolume.r(4);% defaults for GUI pop_dipfit_settings dialogdefaultelectrodes = sprintf('1:%d', nchan);% these settings determine the symmetry constraint that can be toggled on% for the second dipoledefaultconstraint.reduce = [1 2 3];defaultconstraint.expand = [1 2 3 1 2 3];defaultconstraint.mirror = [1 1 1 1 -1 1];% defaults for GUI pop_dipfit_batch dialogsrejectstr    = '40';	% in percentxgridstr     = sprintf('linspace(-%d,%d,11)', floor(meanradius), floor(meanradius));ygridstr     = sprintf('linspace(-%d,%d,11)', floor(meanradius), floor(meanradius));zgridstr     = sprintf('linspace(0,%d,6)', floor(meanradius));

⌨️ 快捷键说明

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