-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphased_array.asv
More file actions
41 lines (30 loc) · 876 Bytes
/
Copy pathphased_array.asv
File metadata and controls
41 lines (30 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Niranjan Mathirajan, Owen Davis
% October 14, 2025
% ECE 315H MATLAB Phased Array Antenna
% https://innovationspace.ansys.com/courses/wp-content/uploads/sites/5/2022/07/AntennaArrays_04ManipulatingtheArrayFactor.pdf
f = 5e6; % frequency of antenna
c = 3e8; % speed of light
lambda = c/f;
dx = 0.8 * lambda; % distance between antennas
N = 16; % number of antennas
nTheta = 360;
theta = linspace(-pi,pi,nTheta);
phase = -0 * pi/180; % direction of anetanna figure out this phase stuff later
k = 2 * pi/ lambda;
AF = zeros(1,nTheta);
SLL = 2;
SLL_R = 10^(SLL);
t0 = cosh(1/((N-1)*cosh(SLL_R)));
% Solving Dolph-Chebyshev
% Array Factor value
for t = 1:nTheta
for n = 1:N
AF(t) = AF(t) + exp(1j*(n-1)*(k*dx*cos(theta(t))+ phase));
end
AF(t) = AF(t)/N;
end
plot(theta, abs(AF),"blue",...
'LineWidth',2)
ax = gca;
gca.FontSize = 12;
grid on