\documentclass[11pt,a4paper]{article}
%\pagestyle{plain}
\usepackage{fullpage}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
%\usepackage{twocolumn}
%\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{pdfsync}
\usepackage{subfigure}
\usepackage{colordvi}
\usepackage{color}
\usepackage{appendix}

 \usepackage{multirow}
  \usepackage{tabularx}
 \usepackage[english]{babel}
 \usepackage{array}
 
 
\usepackage{showlabels}
%\usepackage{showkeys}

\begin{document}
\newcommand{\commentout}[1]{}


\newcommand{\nwc}{\newcommand}
\nwc{\ba}{\begin{array}}
\nwc{\bal}{\begin{align}}
\nwc{\bea}{\begin{eqnarray}}
\nwc{\beq}{\begin{eqnarray}}
\nwc{\bean}{\begin{eqnarray*}}
\nwc{\beqn}{\begin{eqnarray*}}
\nwc{\beqast}{\begin{eqnarray*}}


\nwc{\ea}{\end{array}}
\nwc{\eal}{\end{align}}
\nwc{\eea}{\end{eqnarray}}
\nwc{\eeq}{\end{eqnarray}}
\nwc{\eean}{\end{eqnarray*}}
\nwc{\eeqn}{\end{eqnarray*}}
\nwc{\eeqast}{\end{eqnarray*}}


\nwc{\ep}{\varepsilon}
\nwc{\ept}{\epsilon}

\nwc{\nwt}{\newtheorem}

\nwt{cor}{Corollary}
\nwt{proposition}{Proposition}
\nwt{corollary}{Corollary}
\nwt{theorem}{Theorem}
\nwt{summary}{Summary}
\nwt{lemma}{Lemma}
\nwt{remark}{Remark}
\nwc{\nn}{\nonumber}
\nwc{\st}{\mathcal{S}}



\newcommand{\CC}{\mathbb{C}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\ZZ}{\mathbb{Z}}



\title{Matlab code for phase retrieval with random phase illumination}
\author{Wenjing Liao and Albert Fannjiang}
\maketitle


\section{Functions}


\begin{enumerate}
\item {\bf Main:} the main function where images, random phase/uniform illuminations and Fourier intensity measurements are generated. 

\item {\bf HIOER:} the function of realizing Hybrid Input Output (HIO) followed by Error Reduction (ER).

\item {\bf ER:} the function of realizing pure ER. 


\end{enumerate}










\bibliographystyle{plain}	% (uses file "plain.bst")
\bibliography{myref}		% expects file "myrefs.bib"
 \begin{thebibliography}{99} 

\bibitem{FL}
A. Fannjiang, and W. Liao, \lq\lq Phase retrieval with random phase illumination,\rq\rq {\em Journal of Optical Society of America A}, {\bf 29(9)}, pp.1847-1859, 2012. 

\bibitem{Fannjiang}
A. Fannjiang, \lq\lq Absolute uniqueness of phase retrieval with random illumination,\rq\rq {\em Inverse Problems}, {\bf 28(7)}, pp.075008, 2012. 
 
\bibitem{Fienup}
J. R. Fienup, \lq\lq Phase retrieval algorithms: a comparison,\rq\rq {\em Applied optics}, {\bf 21(15)}, pp.2758-2769, 1982.

\bibitem{Miao}
J. Miao, and D. Sayre, \lq\lq On possible extensions of X-ray crystallography through diffraction-pattern oversampling,\rq\rq {\em Acta Crystallographica Section A: Foundations of Crystallography}, {\bf 56(6)}, pp.596-605, 2000.


 
\end{thebibliography}
\end{document} 