% This file was automatically created from the m-file 
% "m2tex.m" written by USL. 
% The fontencoding in this file is UTF-8. 
%  
% You will need to include the following two packages in 
% your LaTeX-Main-File. 
%  
% \usepackage{color} 
% \usepackage{fancyvrb} 
%  
% It is advised to use the following option for Inputenc 
% \usepackage[utf8]{inputenc} 
%  
%% Insert these lines where you wish to break line 
% \end{tabular} 
% \newpage 
% \begin{tabular}{|p{\textwidth}|} 
  
% definition of matlab colors: 
\definecolor{mblue}{rgb}{0,0,1} 
\definecolor{mgreen}{rgb}{0.13333,0.5451,0.13333} 
\definecolor{mred}{rgb}{0.62745,0.12549,0.94118} % change to {0,0,0} in case of bug 
\definecolor{mgrey}{rgb}{0.5,0.5,0.5} 
\definecolor{mdarkgrey}{rgb}{0.25,0.25,0.25} 
  
\DefineShortVerb[fontfamily=courier,fontseries=m]{\$} 
\DefineShortVerb[fontfamily=courier,fontseries=b]{\#} 
\begin{tabular}{|p{\textwidth}|} 
\hline 
  
\noindent          
 \hspace*{-1.6em}{\scriptsize 1}$  $\color{mblue}$function$\color{black}$ [p, x] = out_prob(L)$\\
 \hspace*{-1.6em}{\scriptsize 2}$  $\\
 \hspace*{-1.6em}{\scriptsize 3}$  p2 = [1 1]/2; $\color{mgreen}$% pmf for L = 1$\color{black}$$\\
 \hspace*{-1.6em}{\scriptsize 4}$  p = p2;$\\
 \hspace*{-1.6em}{\scriptsize 5}$  $\color{mblue}$for$\color{black}$ k = 1:L-1$\\
 \hspace*{-1.6em}{\scriptsize 6}$      p = conv(p, p2);$\\
 \hspace*{-1.6em}{\scriptsize 7}$  $\color{mblue}$end$\color{black}$$\\
 \hspace*{-1.6em}{\scriptsize 8}$  $\\
 \hspace*{-1.6em}{\scriptsize 9}$  $\color{mgreen}$% since x takes on equally spaced values between -1 and 1$\color{black}$$\\
 \hspace*{-2em}{\scriptsize 10}$  x = linspace(-1,1, length(p)); $\\ 
  
\hline 
\end{tabular} 
\UndefineShortVerb{\$} 
\UndefineShortVerb{\#}