timtopo.m

来自「含有多种ICA算法的eeglab工具箱」· M 代码 · 共 602 行 · 第 1/2 页

M
602
字号
% timtopo()   - plot all channels of a data epoch on the same axis %               and map its scalp map(s) at selected latencies.% Usage:%  >> timtopo(data,'chan_locs');%  >> timtopo(data,'chan_locs',[limits],[plottimes]','title',[plotchans], ...%                    [voffsets], 'key', 'val', ...);% Inputs:%  data       = (channels,frames) single-epoch data matrix%  chan_locs  = EEGLAB channel location file or EEG.chanlocs structure. %               See >> topoplot example for file format.%% Optional inputs:%  [limits]   = [minms maxms minval maxval] data limits for latency (in ms) and data values%               {default|0 -> use [0 npts-1 data_min data_max]; else [minms maxms] or [minms maxms 0 0] %               -> use [minms maxms data_min data_max]%  plottimes  = vector of latencies (in ms) to plot scalp maps {default|NaN -> latency of maximum variance}% 'title'     = plot title {default|0 -> none}%  plotchans  = vector of data channel(s) to plot {default|0 -> all}%  voffsets   = vector of (plotting-unit) distances vertical lines extend above the data {default -> all =}% 'topokey','val' = optional topoplot() scalp map plotting arguments. See >> help topoplot % Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 1-10-98 %% See also: envtopo(), topoplot()% Copyright (C) 1-10-98 Scott Makeig, SCCN/INC/UCSD, scott@sccn.ucsd.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: timtopo.m,v $% Revision 1.68  2004/04/25 20:07:28  scott% typo%% Revision 1.67  2004/04/25 20:05:36  scott% help message modernize. adjust text, add white vertical underlines, made limits input more flexible%% Revision 1.66  2003/11/26 18:20:44  scott% Time -> Latency%% Revision 1.65  2003/08/06 00:27:10  arno% remove postp (made matlab 5.3 crash%% Revision 1.64  2003/03/05 03:22:40  scott% cleanup%% Revision 1.63  2003/03/05 03:19:23  scott% topoleft%% Revision 1.62  2003/03/05 03:17:01  scott% typo%% Revision 1.61  2003/03/05 03:16:41  scott% typo%% Revision 1.60  2003/03/05 03:16:10  scott% topoleft%% Revision 1.59  2003/03/05 03:06:37  scott% cleanup%% Revision 1.58  2003/03/05 03:04:52  scott% head_sep%% Revision 1.57  2003/03/05 03:03:43  scott% topowidth%% Revision 1.56  2003/03/05 02:54:49  scott% topoargs%% Revision 1.55  2003/03/05 02:53:26  scott% same%% Revision 1.54  2003/03/05 02:53:00  scott% topostring%% Revision 1.53  2003/03/05 02:46:01  scott% topowdith%% Revision 1.52  2003/03/05 02:44:04  scott% topowidth% .,%% Revision 1.51  2003/03/05 02:41:49  scott% topowidth%% Revision 1.50  2003/03/05 02:40:58  scott% same%% Revision 1.49  2003/03/05 02:40:00  scott% topowidth%% Revision 1.48  2003/03/05 02:36:31  scott% same%% Revision 1.47  2003/03/05 02:36:01  scott% eval topoplot%% Revision 1.46  2003/03/05 02:34:32  scott% topoplot%% Revision 1.45  2003/03/05 02:33:01  scott% topoplot%% Revision 1.44  2003/03/05 02:30:37  scott% emarkersize%% Revision 1.43  2003/03/05 02:28:35  scott% same%% Revision 1.42  2003/03/05 02:27:54  scott% emarkersize%% Revision 1.41  2003/03/05 02:04:58  scott% emarkersize%% Revision 1.40  2003/03/05 02:04:07  scott% emarkersize -sm%% Revision 1.39  2003/03/05 01:56:34  scott% topowidth -sm%% Revision 1.38  2003/03/05 01:55:20  scott% topowidth -sm%% Revision 1.37  2003/03/05 01:51:57  scott% topowidth -sm%% Revision 1.36  2003/03/04 21:17:52  scott% axfont -sm%% Revision 1.35  2003/03/04 21:10:50  scott% titlefont -sm%% Revision 1.34  2003/03/04 18:52:41  scott% cleaning up -sm%% Revision 1.33  2003/03/04 18:48:25  scott% test size -sm%% Revision 1.32  2003/03/04 18:44:58  scott% title text debug -sm%% Revision 1.31  2003/03/04 18:43:45  scott% title text -sm%% Revision 1.30  2003/03/04 18:41:09  scott% title text -sm%% Revision 1.29  2003/03/04 18:40:34  scott% title text -sm%% Revision 1.28  2003/03/04 18:38:57  scott% title text%% Revision 1.27  2003/03/04 18:35:02  scott% cbar text -sm%% Revision 1.26  2003/03/04 18:34:07  scott% cbar text%% Revision 1.25  2003/03/04 18:32:59  scott% cbar text -sm%% Revision 1.24  2003/03/04 18:28:38  scott% cbar text -sm%% Revision 1.23  2003/03/04 18:24:36  scott% final debugs? -sm%% Revision 1.22  2003/03/04 18:22:30  scott% debug last -sm%% Revision 1.21  2003/03/04 18:20:01  scott% debug last -sm%% Revision 1.20  2003/03/04 18:15:06  scott% debug last -sm%% Revision 1.19  2003/03/04 18:13:58  scott% debug last -sm%% Revision 1.18  2003/03/04 18:11:36  scott% debug last -sm%% Revision 1.17  2003/03/04 18:09:45  scott% debug last -sm%% Revision 1.16  2003/03/04 18:07:29  scott% debug last -sm%% Revision 1.15  2003/03/04 18:06:21  scott% using changeunits -sm%% Revision 1.14  2003/03/04 17:49:36  scott% debug oblique lines -sm%% Revision 1.13  2003/03/04 17:41:55  scott% debug last -sm%% Revision 1.12  2003/03/04 17:40:51  scott% debug head size for sbplots -sm%% Revision 1.11  2003/03/04 17:37:47  scott% debug last -sm%% Revision 1.10  2003/03/04 17:36:26  scott% debug last -sm%% Revision 1.9  2003/03/04 17:21:43  scott% debug last -sm%% Revision 1.8  2003/03/04 17:20:23  scott% debug last -sm%% Revision 1.7  2003/03/04 17:16:01  scott% debug last -sm%% Revision 1.6  2003/03/04 17:11:51  scott% edit to work in subplot axes -sm%% Revision 1.5  2002/11/15 03:07:45  arno% header for web%% Revision 1.4  2002/08/28 00:52:30  arno% allow to plot NaN with other latencies%% Revision 1.3  2002/08/27 00:20:54  arno% debugging colorbar->cbar (for menus)%% Revision 1.2  2002/08/12 23:48:05  arno% debug absmax%% Revision 1.1  2002/04/05 17:36:45  jorn% Initial revision%% 5-31-00 added o-time line and possibility of plotting 1 channel -sm & mw% 11-02-99 added maplimits arg -sm% 01-22-01 added to help message -sm% 01-25-02 reformated help & license, added link -ad % 03-15-02 add all topoplot options -adfunction M = timtopo(data,chan_locs,limits,plottimes,titl,plotchans,voffsets, varargin)if nargin < 1   help timtopo;   returnend[chans,frames] = size(data);icadefs;   if nargin < 7 | voffsets == 0  voffsets = zeros(1,32);endif nargin < 6   plotchans = 0;endif plotchans==0   plotchans = 1:chans;endif nargin < 5,   titl = '';     % DEFAULT NO TITLEendplottimes_set=1;   % flag variableif nargin< 4 | isempty(plottimes) | any(isnan(plottimes))   plottimes_set = 0;endlimitset = 0;if nargin < 3,    limits = 0;elseif length(limits)>1    limitset = 1;endif nargin < 2    chan_locs = 'chan.locs';  % DEFAULT CHAN_FILEendif isnumeric(chan_locs) & chan_locs == 0,    chan_locs = 'chan.locs';  % DEFAULT CHAN_FILEend  %  %%%%%%%%%%%%%%%%%%%%%%% Read and adjust limits %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

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