Diff of /filterbank/filterbanklength.m [797cbb] .. [b6ad1a] Maximize Restore

  Switch to unified view

a/filterbank/filterbanklength.m b/filterbank/filterbanklength.m
...
...
32
if any(a<=0)
32
if any(a<=0)
33
      error('%s: "a" must consists of positive numbers only.',upper(mfilename));
33
      error('%s: "a" must consists of positive numbers only.',upper(mfilename));
34
end;
34
end;
35
35
36
lcm_a=a(1);
36
lcm_a=a(1);
37
for m=2:length(a)
37
for m=2:size(a,1)
38
  lcm_a=lcm(lcm_a,a(m,1));
38
  lcm_a=lcm(lcm_a,a(m,1));
39
end;
39
end;
40
40
41
L=ceil(Ls/lcm_a)*lcm_a;
41
L=ceil(Ls/lcm_a)*lcm_a;