Coding wavelets the easy way

Implement the Direct Wavelet Transform with the syntax



function WT = WaveTransform(u,h,g,scale)
% returns wavelet transform of u using filter structure f
% at scale "scale" for input "u"
% h and g is the decomposition filter