p)-subKnot(t))~=0)   
0026         A = p/(subKnot(t+p)-subKnot(t));
0027     <span class="keyword">else</span>
0028         A = 0;
0029     <span class="keyword">end</span>
0030     
0031     <span class="keyword">if</span>((subKnot(t+p+1)-subKnot(t+1))~=0)
0032         B = p/(subKnot(t+p+1)-subKnot(t+1));
0033     <span class="keyword">else</span>
0034         B = 0;
0035     <span class="keyword">end</span>
0036     
0037     Nout(s,t) = A*N(s,t)-B*N(s,t+1);
0038     
0039 <span class="keyword">end</span>