📄 azi_estimate_max.m
字号:
%估计目标方位函数azi_estimate_max
%符合加权
%有线谱情况:估计最大线谱的方位
function [amplitude_theta,theta,result]=azi_estimate_max(sp,svx,svy,spvx,spvy,nfft,fs,ind_up,ind_down);
%限频带范围
sp=sp(ind_down:ind_up);
spvx=spvx(ind_down:ind_up);
spvy=spvy(ind_down:ind_up);
svx=svx(ind_down:ind_up);
svy=svy(ind_down:ind_up);
%估计方位
svr=svx+svy;
energy=real(spvy).^2+real(spvx).^2; %求出各个频率能量
theta=atan2(real(spvy),real(spvx))*180/pi; %求出各个频率指定的方位
amplitude_theta=energy./(sp.*svr).*(sp+svr); %各谱线幅度信息
ind_max=find(amplitude_theta==max(amplitude_theta));
result=theta(ind_max); %能量最大的方位信息
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -