% Meyer wavelets
% illustrates by plotting how the fft of the Meyer
% phi and psi look like rounded versions of the
% ideal lp and hp filter

figure(1), clf
xx = (-1000 : 1000) / 100; x = xx;
sincw = ( sin(2*pi*xx) - sin(pi*x) ) / (pi*x);
sincw(1001) = 1;
[phi, psi, x] = wavefun('meyr',15);

%Phi = DTFTfast(phi,32768);
Phi = fft(phi); Phi = [Phi fliplr(Phi)];
subplot(2,1,1), plot(abs(Phi(32730:32800)))
title('Meyer wavelets |\Phi(\omega)|')

%Psi = DTFTfast(psi,32768);
Psi = fft(psi); Psi = [Psi fliplr(Psi)];
subplot(2,1,2), plot(abs(Psi(32730:32800)))
title('Meyer wavelets |\Psi(\omega)|')
