%
% Optical Imaging and Spectroscopy
%
% David J. Brady
% Duke University
% www.opticalimaging.org
%
% Figure 3.10
%
%
%
% Haar wavelet plots
%
xA=linspace(-.5,1.5,256);
phi=rect(xA-.5);
psi=rect(2*xA-.5)-rect(2*xA-1.5);
phim1=sqrt(2)*rect(2*xA-.5);
figure(1);set(gcf,'color','white');
subplot(1,3,1);plot(xA,phi,'-k');title('\phi (x)=\beta^0(x)');axis([-.5 1.5 -1.5 1.5]);
subplot(1,3,2);plot(xA,psi,'-k');title('\psi (x)=\beta^0(2x)-\beta^0(2x-1)');axis([-.5 1.5 -1.5 1.5]);
subplot(1,3,3);plot(xA,phim1,'-k');title('\phi_{-1,0}(x)=2^{0.5}\beta^0(2x)');axis([-.5 1.5 -1.5 1.5]);
