an class="string">'Too few input parameters'</span>);
0031 <span class="keyword">elseif</span> nargin &gt; 3
0032     error(<span class="string">'Too many input parameters'</span>);
0033 <span class="keyword">end</span>
0034 
0035 <span class="comment">% The window is designed so that it goes smoothly from 1 to 0</span>
0036 <span class="comment">% in the range N*widthp/100 to 2*N*widthp/100</span>
0037 
0038 <span class="keyword">if</span> widthp &lt; 50
0039     w=zeros(N,1);
0040     wl=round(widthp*N/10