\documentstyle[12pt]{article}
\input psfig

% .io  sp5,sp6,sp7
% \includeonly{sp5,sp6,sp7,spS,spSb}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
% \bx   boxed input           \ex
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%(
  \let\beginbrace={
  \let\endbrace=}
  \newdimen\bxleng\setlength{\bxleng}{1.0\textwidth}
\def\bx{\setbox0=\vbox\beginbrace
  \hsize=\bxleng \vspace{-0.5\baselineskip}
  \footnotesize
 }
\def\ex{\vspace{-0.3\baselineskip}\endbrace
  \wd0=0.95\bxleng \begin{center}\fbox{\hskip0.7em\box0}\end{center}}
%)
% \newenvironment{hanging}{\par\vskip\baselineskip\leftskip=1.0in\parindent=0pt
% \def\item ##1 {\par\hspace*{-\leftskip}\makebox[\leftskip][r]{\tt ##1:\quad}}
% }{\par\vskip\baselineskip}

\def\bdx{{\mbox{\bf x}}}
\def\yo{{\mbox{\bf y}_1}}
\def\yt{{\mbox{\bf y}_2}}
% \nofiles
\begin{document}{}
\newtheorem{THEOREM}{Theorem}
\newtheorem{XXXX}{\underline{Theorem}}
\newtheorem{CLAIM}{Claim}
\newtheorem{COR}{Corollary}
\newtheorem{LEMMA}{Lemma}
\newenvironment{PROOF}{{\bf Proof}.}{{\ \vrule height7pt width4pt depth1pt} \par \vspace{2ex} }
\def\psbox#1 #2 {\mbox{\psfig{file=#1.ps,height=#2}}}
\def\psbx#1 #2 {\mbox{\psfig{file=#1,height=#2}}}
\newcommand{\lshy}{\hyphenpenalty=1000}
\newcommand{\nohy}{\hyphenpenalty=100000}
\newcounter{labelflag} \setcounter{labelflag}{0}
\newcommand{\labelon}{\setcounter{labelflag}{1}}
\newcommand{\Label}[1]{\label{#1} \ifnum\thelabelflag=1 
  \ifmmode  \makebox[0in][l]{\qquad\fbox{\rm#1}}
  \else\marginpar{\vspace{0.7\baselineskip}\hspace{-1.2\textwidth}\fbox{\rm#1}}
  \fi \fi}
\newcommand{\LEFTLINE}{\ifhmode\newline\else\noindent\fi}
\newcommand{\RIGHTLINE}[1]{\LEFTLINE\rightline{#1}}
\newcommand{\CENTERLINE}[1]{\LEFTLINE\centerline{#1}}
\def\BOX #1 #2 {\framebox[#1in]{\parbox{#1in}{\vspace{#2in}}}}
\newcommand{\ack}{\thanks{
           This work was supported by the 
         % Applied Mathematical Sciences subprogram 
         % of the Office of Energy Research, 
           Office of Scientific Computing,
           U.S. Department of Energy, 
           under Contract W-31-109-Eng-38.}}
\newcommand{\ads}{                          \\[2ex]
        Mathematics and Computer Science Division  \\
        Argonne National Laboratory                 \\
        Argonne, IL 60439-4844 \\
        E-mail: \quad  {\tt kwong@mcs.anl.gov}}
\newcommand{\add}{\ads}

\parskip=8pt plus 2pt

\def\AUTHOR#1{\author{#1} \maketitle}
\def\Title#1{\begin{center}  \Large\bf #1 \end{center}  \vskip 1ex }
\def\Author#1{\vspace*{-2ex}\begin{center} #1 \end{center}  
 \vskip 2ex \par}
% \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
\def\bdk#1{\makebox[0pt][l]{#1}\hspace*{0.03ex}\makebox[0pt][l]{#1}\hspace*{0.03ex}\makebox[0pt][l]{#1}\hspace*{0.03ex}\makebox[0pt][l]{#1}\mbox{#1} }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                          %
%                      AmsTeX Macros                       %
%                                                          %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\AmSTeX{{\protect
   $\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.125em$\cal S$}%
  -T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}
\def\AmS{{\protect
   $\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.125em$\cal S$}}
\def\cases{\left\{\begin{array}{l@{\qquad}ll}}
\def\endcases{\end{array}\right.}
\def\text{\mbox}
\def\tag#1 {\eqno{(#1)}}
\def\dsize{\displaystyle}
\def\tsize{\textstyle}
\def\smallsetminus{\setminus}

\parskip=4pt

\title{MATLAB Implementation of $ W $-Matrix Multiresolution Analyses}
\date{}\author{Man Kam Kwong\ack\add} \maketitle

% \def\bx{\begin{quote} \footnotesize } 
% \def\ex{\end{quote}}

\pagenumbering{arabic}

\begin{abstract}
We present a MATLAB toolbox on multiresolution analysis 
based on the $W$-transform introduced by Kwong and Tang.
The toolbox contains basic commands to perform
forward and inverse transforms on finite 1D and
2D signals of
arbitrary length, to perform multiresolution analysis of given
signals to a specified number
of levels, to visualize the wavelet decomposition,
and to do compression.  Examples of numerical
experiments are also discussed.
\end{abstract}

\input mwm1.tex
\include{mwm2}
\include{mwm3}
\include{mwm4}
% .i mwm5.tex
% .i mwm6.tex
% .i mwm7.tex
\include{mwm5}
% .i wmb.tex
\end{document}
