[Ea,Ed] = wenergy(c,l)
returns, for a 1-D wavelet decomposition, Ea, the percentage of
energy corresponding to the approximation, and Ed, the
percentages of energies corresponding to the details. c and
l are outputs of wavedec.
E = wenergy(wpt)
returns the percentages of energy corresponding to the terminal nodes of the wavelet
packet tree wpt (see wptree, wpdec, and wpdec2). In this case,
wenergy is a method of the wptree object
wpt, which overloads the previous
wenergy function.
Wavelet decomposition, specified as a vector. The vector contains the
wavelet coefficients. The bookkeeping vector l contains
the number of coefficients by level. See wavedec.
Data Types: single | double Complex Number Support: Yes
l — Bookkeeping vector vector
Bookkeeping vector, specified as a vector of positive integers. The
bookkeeping vector is used to parse the coefficients in the wavelet
decomposition c by level. See wavedec.
Data Types: single | double
wpt — Wavelet packet tree wptree object
Wavelet packet tree, specified as a wptree object. See
wptree, wpdec, and wpdec2.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.