>'simT'</span>)*get(sm,<span class="string">'simN'</span>),1)));   <span class="comment">%zero rates for each cash-flow date</span>
    c(:,j,i)=((1-p(:,end))./sum(p')')*2;    <span class="comment">%compute par coupon rate from zero rates, and convert to annual</span>
  <span class="keyword">end</span>
<span class="keyword">end</span>
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2015a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% getRealParN