資源簡介
%8陣元均勻線陣方向圖,來波方向為0度
clc;
clear all;
close all;
imag=sqrt(-1);
element_num=8;%陣元數為8
d_lamda=1/2;%陣元間距d與波長lamda的關系
theta=linspace(-pi/2,pi/2,200);
theta0=0;%來波方向
w=exp(imag*2*pi*d_lamda*sin(theta0)*[0:element_num-1]');
for j=1:length(theta)
a=exp(imag*2*pi*d_lamda*sin(theta(j))*[0:element_num-1]');
p(j)=w'*a;
end
figure;
plot(theta,abs(p)),grid on
xlabel('theta/radian')
ylabel('amplitude')
title('8陣元均勻線陣方向圖')
代碼片段和文件信息
評論
共有 條評論