✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
相控阵天线广泛应用于军事、通信领域,由于其具有快速扫描与多目标跟踪能力,因此它的应用日益广泛。相控阵技术中最重要的就是波束形成技术即方向图综合技术。
⛄ 完整代码
clear;clc;close all;%% Basic Electromagnetic ParametersFrequency = 10e9;Lightspeed = physconst('LightSpeed');Wavelength = Lightspeed/Frequency;Wavenumber = 2*pi/Wavelength;%% Array ParametersN =6;X = (1:N)*Wavelength/2;I = ones(1,N);alpha = zeros(1,N);%% ArrayFactor SampingNs =1000;% Sampling numbertheta = linspace(-60,60,Ns);E =zeros(1,Ns);for num = 1:Ns E(num)=sum(I.*exp(1j*(Wavenumber*X*sind(theta(num))+alpha)));end%% plot figureE_dB = db(E)-max(db(E));figure()plot(theta,E_dB,'LineWidth',2);%normalizedxlabel('\theta(\circ)');ylabel('dB');ylim([-40,0]);grid on set(gca,'Fontsize',19)%%[hpbw,ang_max] = cal_hpbw_2d(E_dB,theta);
function [hpbw,ang_max] = cal_hpbw_2d(E_dB,theta)[E_dB_max,ang_loc] = max(E_dB);%find the max power and its anglei=0;while E_dB_max-3<E_dB(ang_loc+i)%search the 3dB point right to the max power i=i+1; if ang_loc+i==length(E_dB) break; endendj=0;while E_dB_max-3<E_dB(ang_loc-j)%search the 3dB point right to the max power j=j+1; if ang_loc-j==0 break; endendang_max = theta(ang_loc);ang_left = theta(ang_loc-j);%the left angle ang_right = theta(ang_loc+i);%the right angle hpbw = ang_right- ang_left;% get the HPBWend
⛄ 运行结果
⛄ 参考文献
[1] 么彬, 李海森, 周天,等. 多子阵超宽覆盖海底地形探测方法试验研究[J]. 哈尔滨工程大学学报, 2008, 29(10):6.
[2] 袁鹏亮, 史朝. WOA算法的非均匀稀布阵列优化方法[J]. 无线电工程, 2017, 47(10):6.
[3] 李浩伟, 高翔, 彭杰,等. 天线装置,天线装置的制备方法,雷达及终端:, CN115693125A[P]. 2023.