Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /frames/framelengthcoef.m [6bc853] .. [8d7bed] Maximize Restore

  Switch to unified view

a/frames/framelengthcoef.m b/frames/framelengthcoef.m
...
...
15
15
16
if ~isscalar(Ncoef)
16
if ~isscalar(Ncoef)
17
  error('%s: Ncoef must be a scalar.',upper(mfilename));
17
  error('%s: Ncoef must be a scalar.',upper(mfilename));
18
end;
18
end;
19
19
20
L = F.lengthcoef(Ncoef);
21
assert(abs(L-round(L))<1e-3,'%s: There is a bug. L=%d should be an integer.',upper(mfilename),L);
20
L=round(F.lengthcoef(Ncoef));
22
L=round(F.lengthcoef(Ncoef));
21
    
23
    
22
% Verify the computed length
24
% Verify the computed length
23
if ~(L==framelength(F,L))
25
if ~(L==framelength(F,L))
24
    error(['%s: The coefficient number given does not correspond to a valid ' ...
26
    error(['%s: The coefficient number given does not correspond to a valid ' ...