Develop a Matlab program to compute the regularity of a wavelet and scaling function given its corresponding lowpass and highpass filters.
Hint : Refer to Figure 10.4 and use the Matlab functions dyadup and conv to compute the iterated impulse response in Equation (10.194). Remember that one must first factorize the z transforms of the analysis and synthesis filters according to Equation (10.193). In order to do so, the functions zp2tf and tf2zp can be used. You can also use the fact that the wavelet db4 and the analysis and synthesis
lowpass and highpass filters of the bior4.4 wavelets have four zeros at z = −1.
Try out the wavelets used in Experiments 10.1 and 10.2, as well as wavelets from the
Matlab Wavelet Toolbox (see Matlab command wfilters in Section 10.12).