function x = wprec(Ts,Ds)
%WPREC Wavelet packet reconstruction 1-D.
%   X = WPREC(T,D) returns the reconstructed vector
%   corresponding to a wavelet packet decomposition
%   structure [T,D] (see MAKETREE).
%
%   T is the tree structure and D the data structure.
%
%   See also MAKETREE, WPDEC, WPDEC2, WPJOIN, WPREC, WPREC2,
%        WPSPLT.

%   M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 12-Mar-96.
%   Last Revision: 04-May-1999.
%   Copyright 1995-2000 The MathWorks, Inc.
% $Revision: 1.9 $

% Check arguments.
if errargn(mfilename,nargin,[2],nargout,[0 1]), error('*'); end

[Ts,Ds,x] = wpjoin(Ts,Ds);
