span>
      T1(i,:,p)=F(i,:,p)-Zb(i,:,p);     <span class="comment">% term-premia estimate (random walk)</span>
    <span class="keyword">end</span>
  <span class="keyword">end</span>
<span class="keyword">end</span>
</pre><h2>4. Save term premia for relevant points on zero curve<a name="8"></a></h2><pre class="codeinput"><span class="keyword">for</span> k=1:M
  TT(:,:,k) = interp1(ttm,T1(:,:,k)',simTenor)';
<span class="keyword">end</span>
</pre><h2>5. Create Plots<a name="9"></a></h2><pre class="codeinput