--- a/filterbank/filterbanklength.m
+++ b/filterbank/filterbanklength.m
@@ -34,7 +34,7 @@
 end;
 
 lcm_a=a(1);
-for m=2:length(a)
+for m=2:size(a,1)
   lcm_a=lcm(lcm_a,a(m,1));
 end;