Determine the 64 point Haar transform for the following sets of data, using the function fasthaar. Then, from the Haar transform data, generate a wavelet map, using the function waveletmap. The data is sample over a period of 5.12 seconds.
a. Generate the data from p = [1 1 1 1 -1 -1 -1 -1]; x = [p p p p p p p p]; x = x+0.5*ones(size(x))+0.01*randn(size(x));
b. Generate the data from p = [1 1 1 1 -1 -1 -1 -1]; p1 = [1 1 -1 -1]; x = [p p p1 p1 p1 p1 p p p p];
c. Generate the data from p = [1 1 1 1 1 -1 -1 -1 -1 -1]; x = [p p p p p p p p];
For each case, what components do you see in the data?