
% wavefun from the wavelet toolbox
% this routine illustrates the construction of the Haar wavelet

iter = 8;
[phi, psi, x] = wavefun('db1',iter);
figure(1),
subplot(2,1,1), plot(x,phi), hold on
plot(-0.5+2*x,zeros(size(x))), hold off
title('phi Haar')
axis([-0.5,1.5,-1.5,1.5])
subplot(2,1,2), plot(x,psi), hold on
plot(-0.5+2*x,zeros(size(x))), hold off
title('psi Haar')
axis([-0.5,1.5,-1.5,1.5])
%print -deps moederhaar.eps

