0019 t=(0:1/fs:(N-1)/fs);                <span class="comment">% Time axis</span>
0020 n_zero=round(tp*fs+1);              <span class="comment">% End bin of pulse</span>
0021 <span class="keyword">if</span> n_zero &gt; N
0022    n_zero=N;
0023    disp(<span class="string">'Warning! Pulse length does not fit within window.'</span>)
0024 <span class="keyword">elseif</span> rem(n_zero,2) == 1
0025    n_zero=n_zero-1;
0026 <span class="keyword">end</span>
0027     
0028 <span class="keyword">if</span> strcmp(u