1
function [Lc,L]=wfbtclength(Ls,wt,varargin);
1
function [Lc,L]=wfbtclength(Ls,wt,varargin)
3
3
%@deftypefn {Function} wfbtclength
5
%WFBTLENGTH WFBT subband lengthf from a signal length
6
% Usage: L=wfbtlength(Ls,wt);
7
% L=wfbtlength(Ls,wt,...);
9
% wfbtlength(Ls,wt) returns the length of a Wavelet system that is long
10
% enough to expand a signal of length Ls. Please see the help on
11
% WFBT for an explanation of the parameter wt.
13
% If the returned length is longer than the signal length, the signal
14
% will be zero-padded by WFBT to length L.
5
%WFBTCLENGTH WFBT subband lengths from a signal length
6
% Usage: Lc=wfbtclength(Ls,wt);
7
% [Lc,L]=wfbtclength(...);
9
% Lc=WFBTCLENGTH(Ls,wt) returns the lengths of coefficient subbands
10
% obtained from WFBT for a signal of length Ls. Please see the help
11
% on WFBT for an explanation of the parameters wt.
13
% [Lc,L]=WFBTCLENGTH(...) additionally returns the next legal length
14
% of the input signal for the given extension type.
16
% The function support the same boundary-handling flags as the FWT
17
20
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/wavelets/wfbtclength.php}
21
%@seealso{wfbt, wfbtlength}
21
24
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
22
% This file is part of LTFAT version 1.4.4
25
% This file is part of LTFAT version 2.0.1
24
27
% This program is free software: you can redistribute it and/or modify
25
28
% it under the terms of the GNU General Public License as published by
34
37
% You should have received a copy of the GNU General Public License
35
38
% along with this program. If not, see <http://www.gnu.org/licenses/>.
40
% AUTHOR: Zdenek Prusa
42
complainif_notposint(Ls,'Ls','WFBTCLENGTH');
38
44
definput.import = {'fwt'};
39
45
[flags,kv]=ltfatarghelper({},definput,varargin);