diff --git a/functions/miscfunc/tftopo.m b/functions/miscfunc/tftopo.m index 9663b0419..bef396d3b 100644 --- a/functions/miscfunc/tftopo.m +++ b/functions/miscfunc/tftopo.m @@ -181,9 +181,9 @@ % setting more defaults % --------------------- -if length(times) ~= size(tfdata,2) - fprintf('tftopo(): tfdata columns must be a multiple of the length of times (%d)\n',... - length(times)); +if mod(size(tfdata,2),length(times)) ~= 0 + fprintf('tftopo(): tfdata columns must be a multiple of the length of times (%d vs %d)\n',... + size(tfdata,2), length(times)); return end if length(g.showchan) > 1