gle-sided</span>
0087     df=fs/L;
0088     p=p/df;                         <span class="comment">% Could also have been computed as dt*1/L*abs(fft(x))</span>
0089     p(1)=0;
0090     Lp=length(p);
0091     fp=(0:df:(Lp-1)*df)';
0092     
0093     <span class="keyword">if</span> strcmp(res,<span class="string">'LIN'</span>)
0094         <span class="comment">% Change blocksize to actual number of freq. lines</span>
0095         N=Nin/2+1;
0096         <span class="comment">% Determine smoothing window leng