\documentclass{standalone}
\usepackage[useliterate]{mcode}  
\begin{document}
\begin{lstlisting}
>> resultMC.settings

ans = 

     x2zFunction: @zfunction
    x2zVariables: {}
          method: 'matrix'
       NrSamples: 30000
              IS: [1x1 struct]
     P2xFunction: @P2x
            seed: NaN
      ISvariable: ''
               W: 1
              f1: Inf
              f2: 0
\end{lstlisting} 
\end{document}