lation(sm,data);
</pre><p><i>sm</i> : method is applied to <i>stochasticModel</i> class</p><p><i>data</i> : structure with the monthly simulated variables</p><h2>1. Define variables for output<a name="3"></a></h2><pre class="codeinput"><span class="keyword">for</span> i=1:length(get(sm,<span class="string">'simTenor'</span>)); <span class="comment">%zero-coupon rates</span>
  mZ(i,:)=mean(squeeze(data.Z(:,i,:)));
<span class="keyword">end</span>

<span class="keyword">for</span> i=1:size(data.X,2); <span cl