% The function calculates and displays continuous
% wavelet transforms for a more complex function

% Note that this code requires the toolbox 'wavelab' to be available in MATLAB 
% (run the script "WavePath.m" to perform all initializations)


function wavelet_04
  
echo off, clc
clear all

s = zeros(1,1024);
s(512) = 1;
awt = AWT(s);
figure(1); ImageCWT(abs(awt),'Overall','gray');
figure(2); ImageCWT(real(awt),'Overall','gray');
figure(3); ImageCWT(angle(awt),'Overall','gray');
figure(4); plot(real(awt(:,72)),'b'); hold on; plot(real(awt(:,36)),'r');
hold off;
