s="string">'HANN5'</span>)
0053                 Orders(r,n)=sqrt(sum(S(fidx-2:fidx+2,r).^2)/1.5);
0054                 <span class="keyword">if</span> ~isreal(S)
0055                     Phase=mean(angle(S(fidx-2:fidx+2,r)));
0056                     Orders(r,n)=Orders(r,n)*exp(j*Phase);
0057                 <span class="keyword">end</span>
0058             <span class="keyword">elseif</span> strcmp(upper(Method),<span class="string">'PEAK'</span>)
0059                 Orders(r,n)=S(fidx,r);
0060           