\documentclass{standalone}
\usepackage[useliterate]{mcode}  
\begin{document}
\begin{lstlisting}
%% create stochastic variables
stochast = struct();
 
% resistance
stochast(1).Name   = 'R';
stochast(1).Distr  = @norm_inv;
stochast(1).Params = {9 2};
 
% sollicitation
stochast(2).Name   = 'S';
stochast(2).Distr  = @norm_inv;
stochast(2).Params = {6 3};
\end{lstlisting} 
\end{document}