%%%%%%%%%这里设单元幅度均为1
clear;
fx = 0;
fy = 0;
fz = 0.1;
F = 2.43;
lamda = 3*1e8/(F*1e9);
k = 2*pi/lamda;
m = 8; %8*8阵列
n = 8;
d = 0.08; %单元间距
x = -(m-1)/2*d:d:(m-1)/2*d;
y = -(n-1)/2*d:d:(n-1)/2*d;
[X,Y] = meshgrid(x,y);
phase = k*sqrt((X-fx).^2+(Y-fy).^2+fz^2)-k*fz;
phase_degree = phase*180/pi;%度
phase_mod = mod(phase_degree, 360);
figure;
pcolor(X, Y, phase_mod);
colorbar;
figure;
surf(X, Y, phase_mod);
%%phase_mod就是要给每个阵列单元要馈电的相位
标签:lamda,figure,补偿法,相位,阵列,phase,fz,mod
From: https://blog.csdn.net/qq_51675398/article/details/143191831