没有合适的资源?快使用搜索试试~ 我知道了~
首页电子扫描阵列MATLAB®建模与仿真源代码
电子扫描阵列MATLAB®建模与仿真源代码
3星 · 超过75%的资源 需积分: 48 132 下载量 54 浏览量
更新于2023-03-16
评论 9
收藏 293KB DOC 举报
电子扫描阵列MATLAB®建模与仿真源代码,包括了该书的所有MATLAB代码,很有借鉴价值
资源详情
资源评论
资源推荐
Contents
1.4 MATLAB Program and Function Listings...............................................................3
1.6 MATLAB Program and Function Listings...............................................................3
1.6.1 BeamwidthCalculator.m....................................................................................3
1.6.2 Compute_1D_AF.m (Function).........................................................................3
1.6.3 Compute_1D_EP.m (Function).........................................................................4
1.6.4 Compute_1D_PAT (Function)...........................................................................4
1.6.5 process_vector.m (Function)..............................................................................4
1.6.6 Pattern1D.m.......................................................................................................5
1.6.7 Pattern1D_GLs.m..............................................................................................7
1.6.8 Pattern1D_IBW.m.............................................................................................9
1.6.9 Taylor.m (Function).........................................................................................11
1.6.10 AmpWeightsCompare.m...............................................................................12
1.6.11 Pattern1D_ConformalArray.m.......................................................................13
1.7 MATLAB Program and Function Listings.............................................................15
1.7.1 Compute_2D_AF.m (Function).......................................................................15
1.7.2 Compute_2D_AFquant.m (Function)..............................................................15
1.7.3 Compute_2D_EP.m (Function).......................................................................16
1.7.4 Compute_2D_PAT.m (Function)....................................................................17
1.7.5 Compute_2D_INTGAIN.m (Function)...........................................................17
1.7.6 process_matrix.m (Function)...........................................................................18
1.7.7 process_matrix2.m (Function).........................................................................18
1.7.8 Taylor.m (Function).........................................................................................18
1.7.9 Pattern2D.m.....................................................................................................19
1.7.10 GratingLobePlotter.m....................................................................................28
1.8 MATLAB Program Listings...................................................................................30
1.8.1 Compute_1D_AF.m (Function).......................................................................30
1.8.2 Compute_1D_EP.m (Function).......................................................................30
1.8.3 Compute_1D_PAT (Function).........................................................................30
1.8.4 process_vector.m (Function)............................................................................31
1.8.5 Taylor.m (Function).........................................................................................31
1.8.6 Subarray1D.m..................................................................................................32
1.8.7 Subarray1D_DBF.m........................................................................................35
1.8.8 Subarray1D_Overlapped.m.............................................................................38
1.9 MATLAB Program and Function Listings.............................................................43
1.9.1 simpleCostFunction.m.....................................................................................43
1.9.2 simpleGA_AmpTaperEx.m.............................................................................44
1.9.3 simpleGA_FlattopEx.m...................................................................................49
1.9.4 simpleGA_PhaseOnlyEx.m.............................................................................54
1.9.5 simplePS_AmpTaperEx.m...............................................................................59
1.9.6 simplePS_FlattopEx.m.....................................................................................63
1.9.7 simplePS_PhaseOnlyEx.m...............................................................................67
1.10 MATLAB Program Listings.................................................................................72
1.10.1 defineOrbit.m.................................................................................................72
1.10.2 defineEarth.m.................................................................................................75
1.10.3 makeEllipse.m................................................................................................75
1.10.4 defineESA.m..................................................................................................76
1.10.5 los2ecef.m......................................................................................................77
1.10.6 computeHorizon.m.........................................................................................77
1.10.7 computeFOV.m..............................................................................................78
1.10.8 main_example1.m..........................................................................................80
1.10.9 main_example2.m..........................................................................................81
1.10.10 main_example3.m........................................................................................82
1.11 MATLAB Program Listings.................................................................................86
1.11.1 Reliability Code.............................................................................................86
1.4 MATLAB Program and Function Listings
1.5
1.6 MATLAB Program and Function Listings
This section contains a listing of all MATLAB programs and functions used in this
chapter.
1.6.1 BeamwidthCalculator.m
%% This Code Plots Beamwidth vs. Frequency and Scan Angle
% Arik D. Brown
%% Input Parameters
BW.k=0.886;%Beamwidth Factor (radians)
BW.f_vec=[1 5 10 15];%Frequency in GHZ
BW.lambda_vec=0.3./BW.f_vec;%meters
BW.L=1;%Aperture Length in meters
BW.thetao_vec=0:5:60;%Degrees
%% Calculate Beamwidths
[BW.lambda_mat BW.thetao_mat]=meshgrid(BW.lambda_vec,BW.thetao_vec);
BW.mat_rad=BW.k*BW.lambda_mat./(BW.L*cosd(BW.thetao_mat));
BW.mat_deg=BW.mat_rad*180/pi;
%% Plot
figure(1),clf
plot(BW.thetao_mat,BW.mat_deg,'linewidth',2)
grid
set(gca,'fontsize',16,'fontweight','b')
xlabel('Scan Angle (Degrees)','fontsize',16,'fontweight','b')
ylabel('Beamwidth (degrees)','fontsize',16,'fontweight','b')
legend('1 GHz','5 GHz','10 GHz','15 GHz')
1.6.2 Compute_1D_AF.m (Function)
%% Function to Compute 1D AF
% Arik D. Brown
function [AF, AF_mag, AF_dB, AF_dBnorm] =...
Compute_1D_AF(wgts,nelems,d_in,f_GHz,fo_GHz,u,uo)
lambda=11.803/f_GHz;%wavelength(in)
lambdao=11.803/fo_GHz;%wavelength at tune freq(in)
k=2*pi/lambda;%rad/in
ko=2*pi/lambdao;%rad/in
AF=zeros(1,length(u));
for ii=1:nelems
AF = AF+wgts(ii)*exp(1j*(ii-(nelems+1)/2)*d_in*(k*u-ko*uo));
end
[AF_mag AF_dB AF_dBnorm] = process_vector(AF);
1.6.3 Compute_1D_EP.m (Function)
%% Function to Compute 1D EP
% Arik D. Brown
function [EP, EP_mag, EP_dB, EP_dBnorm] =...
Compute_1D_EP(theta_deg,EF)
EP=zeros(size(theta_deg));
EP=(cosd(theta_deg).^(EF/2));%Volts
[EP_mag, EP_dB, EP_dBnorm] = process_vector(EP);
1.6.4 Compute_1D_PAT (Function)
%% Function to Compute 1D PAT
% Arik D. Brown
function [PAT, PAT_mag, PAT_dB, PAT_dBnorm] =...
Compute_1D_PAT(EP,AF)
PAT=zeros(size(AF));
PAT=EP.*AF;
[PAT_mag PAT_dB PAT_dBnorm] =...
process_vector(PAT);
1.6.5 process_vector.m (Function)
function[vectormag,vectordB,vectordBnorm] = process_vector(vector)
vectormag=abs(vector);
vectordB=20*log10(vectormag+eps);
vectordBnorm=20*log10((vectormag+eps)/max(vectormag));
1.6.6 Pattern1D.m
% 1D Pattern Code
% Computes Element Pattern (EP), Array Factor(AF)and array pattern (EP*AF)
% Arik D. Brown
clear all
%% Input Parameters
%ESA Parameters
%ESA opearating at tune freq
array_params.f=10;%Operating Frequency in GHz
array_params.fo=10;%Tune Frequency in GHz of the Phase Shifter,
array_params.nelem=30;%Number of Elements
array_params.d=0.5*(11.803/array_params.fo);%Element Spacing in Inches
array_params.EF=1.35;%EF
array_params.wgtflag=1;%0 = Uniform, 1 = Taylor Weighting
%$$$$These Parameters Only Used if array_params.wgtflag=1;
array_params.taylor.nbar=5;
array_params.taylor.SLL=30;%dB value
%Theta Angle Parameters
theta_angle.numpts=721;%Number of angle pts
theta_angle.min=-90;%degrees
theta_angle.max=90;%degrees
theta_angle.scan=0;%degrees
plotcommand.EP=0;%Plot EP if = 1
plotcommand.AF=0;%Plot EP if = 1
plotcommand.PAT=1;%Plot PAT if = 1
plotcommand.ALL=0;%Plot All patterns overlaid if = 1
%% Compute Patterns
if array_params.wgtflag==0
array_params.amp_wgts=ones(array_params.nelem,1);
else
array_params.amp_wgts=Taylor(array_params.nelem,array_params.taylor.SLL,...
array_params.taylor.nbar);
end
theta_angle.vec=linspace(theta_angle.min,theta_angle.max,...
剩余63页未读,继续阅读
aixin_jueluo
- 粉丝: 3
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2