clc
clear all;
close all
B=[-6 0 0 -6];%电流
B=10.^(B/20);
B=[0.45 1 1 0.5];
A=exp(j*[00 180 180 180 ]/180*pi);%相位
freq=2018;
boch=300/freq*1000;
dx=65;
dys=4;
num=360;
F=zeros(dys,num);
theta=[-num/2:num/2-1];
dy=danyuan;
for m=1:num
E=dy(m)*B.*exp(j*2*pi*[0:dys-1]*dx/boch*sin(theta(m)/180*pi));
f(:,m)=A*E.';
end
sz=size(f.');
max0=ones(sz(1),1)*max(abs(f).');
mp=max(abs(f).')
p=20*log10(abs(f).'./max0);
p=p.';
plot([-num/2:num/2-1]/num*2*180,p)
grid on
hold on
axis([-180,180,-42,0])
set(gca,'xtick',[-180:30:180]);
set(gca,'ytick',[-42:1:0]);
num1=num;
fw=find(p>=-3);
tht=[-num1/2:num1/2-1]/num1*2*180;
bw=tht(fw(end)+1)-tht(fw(1)-1)
text(80,-4.2,'波束宽度为:' ) ; text(153,-4.2, num2str(bw)) ; text(167,-4.2, '度')
title('+45度广播波束')
gbo.rar_matlab天线_天线方向图 matlab_天线波束_阵列天线_阵列天线仿真
版权申诉
178 浏览量
2022-09-19
15:24:05
上传
评论
收藏 620B RAR 举报
Kinonoyomeo
- 粉丝: 74
- 资源: 1万+
评论0