www.gusucode.com > wavelet工具箱matlab源码程序 > wavelet/wavelet/@wptree/wprcoef.m

    function x = wprcoef(t,node)
%WPRCOEF Reconstruct wavelet packet coefficients.
%   X = WPRCOEF(T,N) computes reconstructed coefficients
%   of the node N of the wavelet packet tree T.
%
%   X = WPRCOEF(T) is equivalent to X = WPRCOEF(T,0).
%
%   See also WPDEC, WPDEC2, WPREC, WPREC2.

%   M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 12-Mar-96.
%   Last Revision: 20-Dec-2010.
%   Copyright 1995-2010 The MathWorks, Inc.

% Check arguments.
if nargin==1, node = 0; end
if find(isnode(t,node)==0)
    error(message('Wavelet:FunctionArgVal:Invalid_NodVal'));
end
x = rnodcoef(t,node);