資源簡介
相控陣雷達的波位編排仿真,實時顯示編排結果,雷達陣面可修改

代碼片段和文件信息
%本程序用于雷達球坐標系到正弦空間坐標系的轉換以及相控陣雷達的波位編排。070129?by?zyb.
%070228添加波位數據保存
clear?all
close?all
clc
%波束寬度單位:度
BeamWidth?=?3.6;
theta05?=?round(sin(BeamWidth*pi/180)*1000)/1000;
%雷達作用空域
AZ?=?[-15?15];??????????????%方位角范圍(雷達球坐標系),單位:度
EL?=?[0?30];????????????????%俯仰角范圍(雷達球坐標系),單位:度
%陣面傾角,單位:度
thetaT?=?atan(-(cos(EL(1)*pi/180)?-?cos(EL(2)*pi/180))/(sin(EL(1)*pi/180)?-?sin(EL(2)*pi/180))*cos(AZ(2)*pi/180))*180/pi;
%左邊界
az?=?AZ(1);
el?=?EL(1):EL(2);
alpha1?=?cos(el*pi/180)*sin(az*pi/180);
beta1?=?sin(el*pi/180)*cos(thetaT*pi/180)-cos(el*pi/180)*cos(az*pi/180)*sin(thetaT*pi/180);
%右邊界
az?=?AZ(2);
el?=?EL(1):EL(2);
alpha2?=?cos(el*pi/180)*sin(az*pi/180);
beta2?=?sin(el*pi/180)*cos(thetaT*pi/180)-cos(el*pi/180)*cos(az*pi/180)*sin(thetaT*pi/180);
%下邊界
az?=?AZ(1):AZ(2);
el?=?EL(1);
alpha3?=?cos(el*pi/180)*sin(az*pi/180);
beta3?=?sin(el*pi/180)*cos(thetaT*pi/180)-cos(el*pi/180)*cos(az*pi/180)*sin(thetaT*pi/180);
%上邊界
az?=?AZ(1):AZ(2);
el?=?EL(2);
alpha4?=?cos(el*pi/180)*sin(az*pi/180);
beta4?=?sin(el*pi/180)*cos(thetaT*pi/180)-cos(el*pi/180)*cos(az*pi/180)*sin(thetaT*pi/180);
lowup?=?max(beta3);
lowest?=?min(beta3);
rightest?=?max(alpha3)?+?theta05/2;
leftest?=?min(alpha3)?-?theta05/2;
upest?=?max(beta4);
uplow?=?min(beta4);
figure(1)plot(alpha1beta1‘r‘);axis([?leftest-0.1?rightest+0.05?lowest-0.05?upest+0.1]);hold?on;grid?on;
title(‘雷達波束在正弦空間的編排‘);xlabel(‘alpha(rad)‘);ylabel(‘beta(rad)‘);
plot(alpha2beta2‘r‘);
plot(alpha3beta3‘r‘);
plot(alpha4beta4‘r‘);
%?pause(0.1)
%==========================================================================
BoweiNumber?=?0;
Mx?=?2*round(rightest/theta05)-1;
My?=?round((upest?-?lowest)/(0.866*theta05));
arr_x0?=?zeros(MyMx);??%波位坐標(方位角)
arr_y0?=?zeros(MyMx);??%波位坐標(俯仰角)
arr_NboweiRow?=?zeros(My1);?%每一行的波位數目
%---------------奇數行------------------------
m?=?0;
for?y0?=?lowest+theta05/2:?2*0.866*theta05?:?upest
????m?=?m?+?1;
????n?=?0;
????NboweiRow?=?0;
????for?x0?=?0:theta05:rightest
????????n?=?n?+?1;
????????x?=?(-theta05/2:0.001:theta05/2)?+?x0;
????????y1?=?sqrt((theta05/2)^2?-?(x?-?x0).^2)?+?y0;????????
????????y2?=?-sqrt((theta05/2)^2?-?(x?-?x0).^2)?+?y0;
????????%?alpha2beta2:右邊界????
????????flag?=?0;
????????[minValue?minSite]?=?min(abs(beta2?-?y0));
????????if?alpha2(minSite)?+?theta05/2?>=?x0
???????????????flag?=?1;
????????end
????????if?y0?????????????%?alpha3beta3:下邊界???????
????????????[minValue?minSite]?=?min(abs(alpha3?-?x0));
????????????if?beta3(minSite)?>?y0
????????????????flag?=?0;
????????????end
????????end
????????if?y0?>?uplow
????????????%?alpha4beta4:上邊界???????
????????????[minValue?minSite]?=?min(abs(alpha4?-?x0));
????????????if?beta4(minSite)?+?theta05/2?<=?y0
????????????????flag?=?0;
????????????end
????????end
????????if?flag?==?1
????????????NboweiRow?=?NboweiRow?+?1;?
????????????plot(xreal(y1));
????????????plot(xreal(y2));????????????
????????????pause(0.01)
????????????BoweiN
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8751??2007-05-22?11:32??boweibianpai.m
-----------?---------??----------?-----??----
?????????????????8751????????????????????1
評論
共有 條評論