From 79aeb3da961407122b44df7a61fb9f93dd894850 Mon Sep 17 00:00:00 2001 From: jfrey Date: Thu, 10 Apr 2025 13:34:13 +0200 Subject: [PATCH] tftopo: fix check for data and times sizes, indeed allow for multiples --- functions/miscfunc/tftopo.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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