eight_line_zhenlieyinzitu.m
来自「均匀线阵因子方向图」· M 代码 · 共 27 行
M
27 行
%均匀轴向排列(8阵元)线状天线阵列因子图
clc;
clear all;
close all;
%--------------基本参数--------------%
c=30000000;%波速
f=9000;%频率
lamda=c/f;%波长λ
N=8;%阵元数
t=-2*pi:pi/180:2*pi;%fa的角度变化采样,即为cos(fa);theta的角度为pi/2,即sin(theta)=1
d=0.5*lamda;%阵元间距
ps=(d*pi/lamda);
f0=sin((ps*N*cos(t)*1)-(ps*N*cos(pi/4)));%fa0为45度
f1=sin((ps*cos(t)*1)-(ps*cos(pi/4)));
f2=exp(-j*ps*(cos(t)*1-cos(pi/4)));
f=abs(f0.*f2./f1);%阵列或数组的乘法和除法
ff0=sin((ps*N*cos(t)*1)-(ps*N*cos(80*pi/180)));%fa0为80度
ff1=sin((ps*cos(t)*1)-(ps*cos(80*pi/180)));
ff2=exp(-j*ps*(cos(t)*1-cos(80*pi/180)));
ff=abs(ff0.*ff2./ff1);%阵列或数组的乘法和除法
T=t;
%f1=abs(f)/8;
%f1=10*f;
polar(T,f);%绘极坐标图
hold on;
polar(T,ff,'r:');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?