I can recommend the book "Ripples in Mathematics: The Discrete Wavelet
Transform" by A. Jensen and Anders la Cour-Harbo (ISBN:
3-540-41662-5). In fact, a few years ago, I participated in a
course held by one of the authors. The book contains MATLAB
source and chapter 13, starting on page 211, is "Wavelets in
Matlab".
It also has 2D transform examples (for images). Chapter 6,
"Two Dimensional Transforms", starts with "In this chapter
we will briefly show how the discrete wavelet transform can
applied to two dimensional signals, such as images".
For some examples it uses the free Uvi_Wave Wavelet
Toolbox - "... is a set of Wavelet Processing based
functions implemented under ... Matlab ... includes
Wavelet Transform functions for one or more dimensions...
includes Wavelet Packet Transform (one and two
dimensional)."