Why am I unable to receive the same results when executing the example code from the documentation for the WPVIEWCF function in the Wavelet Toolbox 2.2 (R13SP1)?

Why am I unable to receive the same results when executing the example code from the documentation for the WPVIEWCF function in the Wavelet Toolbox 2.2 (R13SP1)?
When I copy and paste the following example code from the documentation, I obtain different results:
% Create a wavelet packet tree.
x = sin(8*pi*[0:0.005:1]);
t = wpdec(x,4,'db1');
% Plot tree t.
% Click the node (3,0), (see the plot function)
plot(t);
% Plot the colored wavelet packet coefficients.
wpviewcf(t,1);

 Accepted Answer

This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as an error within the documentation for the Wavelet Toolbox within the WPVIEWCF section. The documentation should read as follows:
% Create a wavelet packet tree.
x = sin(8*pi*[0:0.005:1]);
t = wpdec(x,3,'db1');
% Plot tree t.
% Click the node (3,0), (see the plot function)
plot(t);
% Plot the colored wavelet packet coefficients.
wpviewcf(t,1);

More Answers (0)

Products

Release

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!