[SPEC,TIMES,FREQ] = wpspectrum(WPT,Fs) returns a matrix of wavelet packet spectrum estimates, SPEC, for the binary wavelet packet tree object, WPT. Fs is the sampling frequency in Hertz. SPEC is a 2J-by-N matrix where J is the level of the wavelet packet transform and N is the length of the time series. TIMES is a 1-by-N vector of times and FREQ is a 1-by-2J vector of frequencies.
[...] = wpspectrum(WPT,Fs,'plot') displays the wavelet packet spectrum.
[...,TNFO] = wpspectrum(...) returns the terminal nodes of the wavelet packet tree in frequency order.