[Eeglablist] Issue with pop_selectcomps

Max Cantor Max.Cantor at colorado.edu
Fri May 5 14:40:07 PDT 2017

I did not have access to matlab at the time that I sent this message, but
for reference, here is the exact error I'm getting:

Error using linspace (line 22)
Inputs must be scalars.

Error in topoplot (line 975)
  xi = linspace(xmin,xmax,GRID_SCALE);   % x-axis description (row vector)

Error in pop_selectcomps (line 145)
            topoplot( EEG.icawinv(:,ri), EEG.chanlocs, 'verbose', ...

Error in pop_selectcomps (line 72)

I traced back xmin and xmax (which were empty) to the above line in
topoplot (pltchans = find(RD <= plotrad), and even though I followed the
error all the way through the function, I couldn't quite figure out why
this happened in the first place.

On Fri, May 5, 2017 at 12:41 PM, Max Cantor <Max.Cantor at colorado.edu> wrote:

> Hi,
> I'm having an issue with pop_selectcomps, which I am trying to use for
> manual eye (specifically blink and saccade) correction. This is especially
> important because this is an EEG and eye tracking coregistration study,
> meaning there are significant saccade artifacts.
> As best as I can tell the issue is that this line in topoplot.m:
> pltchans = find(Rd <= plotrad)
> Is finding zero cases of Rd <= plotrad, and so it fails to plot anything.
> However, when I call to topoplot directly in other cases to look at ERP
> time-window averages it works fine, so I don't believe it's an issue with
> my channel locations per se, nor my data per se, although possibly
> something to do with my component-space. In particular, I do artifact-based
> channel interpolation prior to ICA, and use PCA to reduce the rank in ICA
> in accordance with the number of channels interpolated, but maybe I'm doing
> something wrong?
> There are also two EOG, four eyetracker, and two stimulus related channels
> which I do not want to include in ICA, which is why I do all the manual
> specifying of channels 1:64
> Below is a portion of my code, relating to ICA:
> EEG = pop_runica(EEG, 'chanind', 1:64, 'pca', 64-length(badchans));
> tmp = EEG;
> tmp.data = EEG.data(1:64,:);
> tmp.nbchan = 64;
> tmp.chanlocs = tmp.chanlocs(1:64);
> tmp = pop_selectcomps(tmp, [1:(64-length(badchan))]);
> Any help would be appreciated.
> Thanks,
> Max
> --
> Max Cantor
> Graduate Student
> Cognitive Neuroscience of Language Lab
> University of Colorado Boulder

Max Cantor
Graduate Student
Cognitive Neuroscience of Language Lab
University of Colorado Boulder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20170505/1f96cdea/attachment.html>

More information about the eeglablist mailing list