Skip to content

Commit

Permalink
now uses same functions to plot individual components
Browse files Browse the repository at this point in the history
git-svn-id: https://sccn.ucsd.edu/svn/software/eeglab@7091 1e58238c-3a72-4c0f-aabe-36d030380f39
  • Loading branch information
Arnaud Delorme committed Mar 14, 2007
1 parent f759504 commit cf0c6fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions functions/studyfunc/std_topoplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

% $Log: not supported by cvs2svn $
% Revision 1.20 2007/03/14 03:17:11 arno
% do not invert polarity for plotting
%
% Revision 1.19 2007/03/14 03:00:48 arno
% update function name
%
Expand Down Expand Up @@ -279,11 +282,14 @@
else
comp_ind = varargin{1};
end
STUDY = std_readtopoclust(STUDY,ALLEEG, cls);
for ci = 1:length(comp_ind)
abset = STUDY.datasetinfo(STUDY.cluster(cls).sets(1,comp_ind(ci))).index;
comp = STUDY.cluster(cls).comps(comp_ind(ci));
subject = STUDY.datasetinfo(STUDY.cluster(cls).sets(1,comp_ind(ci))).subject;
[grid, yi, xi] = std_readtopo(ALLEEG, abset, comp);
comp = STUDY.cluster(cls).comps(comp_ind(ci));
grid = STUDY.cluster(cls).topoall{comp_ind(ci)};
xi = STUDY.cluster(cls).topox;
yi = STUDY.cluster(cls).topoy;
[Xi,Yi] = meshgrid(yi,xi);
figure;
toporeplot(grid, 'style', 'both', 'plotrad',0.5,'intrad',0.5,'xsurface', Xi, 'ysurface', Yi, 'verbose', 'off');
Expand Down

0 comments on commit cf0c6fc

Please sign in to comment.