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

ans = 

       P_f: 0.2033
      Beta: 0.8300
      Calc: 30000
     P_exc: [30000x1 double]
    P_corr: [30000x1 double]
    idFail: [30000x1 logical]
         u: [30000x2 double]
         P: [30000x2 double]
         x: [30000x2 double]
         z: [30000x1 double]
\end{lstlisting} 
\end{document}