[Eeglablist] Bugs in EEGLAB 4.42
Bernie C. Till
btill at engr.uvic.ca
Tue Nov 4 14:21:53 PST 2003
Hello, Everyone:
I'm running EEGLAB v4.42 under MatLab Version 7.0.0.14113 (R14), and I've
found a bug in plottopo(). The symptom is that one receives the error
message
Error using ==> text
Not enough input arguments.
from plottopo(), which then aborts execution.
The problem originates in line 692 of plottopo.m, where the offending call
is
h=text(xmin-NAME_OFFSET*xdiff,yht-NAME_OFFSETY*ydiff,[channames(c,:)]);
Interestingly, replacing the numerical expressions with constants makes the
error go away, so that
h=text(0,0,[channames(c,:)]);
at least allows the figure to be displayed, but then the same problem
resurfaces in the following locations:
line call
818 h=text(signx, ymin,num2str(ymin,3));
822 h=text(signx, ymax,['+' num2str(ymax,3)]);
827 h=text(xmin,ytick,tick);
832 h=text(xmin+xdiff/2,ytick-0.5*g.ydir*ydiff,tick);
837 h=text(xmax,ytick,tick);
All of the variables are perfectly well defined, so I am at a loss... can
you suggest a way to fix this strangle little problem?
It seems to me that the problem occurs every time plottopo() is called, but
I can' be sure of that. One way to reproduce the problem with certainty is
to follow the steps leading up to the invocation of pop_comperp() in section
1.7.2 of the tutorial.
Best Regards,
-- Bernie Till
P.S. -- Incidentally, there is another small bug -- easily fixed -- in
eegfilt.m at line 158. Here, we find
if epochframes = 0,
epochframes = frames; % default
end
As soon as we replace this with
if epochframes == 0,
epochframes = frames; % default
end
eegfilt() works just fine.
More information about the Eeglablist
mailing list