Effacer les filtres
Effacer les filtres

how to draw a 5x5 three-dimensional planar array with isotropic elements using the formula AF_(n ) (θ,ϕ)= {1/M sin⁡(M/2 ψ_x )/sin⁡(ψ_x/2) }{1/N sin⁡(N/2 ψ_y )/sin⁡(ψ_y/2) }

5 vues (au cours des 30 derniers jours)
seperti gambar berikut

Réponses (1)

Divyam
Divyam le 20 Août 2024
Here is the code for plotting a 5x5 3D planar array
% Defining the size of the array
M = 5;
N = 5;
theta = linspace(0, pi, 180); % Taking sample values for theta
phi = linspace(0, 2*pi, 360); % Taking sample values for phi
% Creating a meshgrid for theta and phi
[Theta, Phi] = meshgrid(theta, phi);
% Defining the wave number and element spacing
k = (2 * pi) / 30; % Assuming wavelength lambda = 30
d_x = 7.5; % Given lambda/4
d_y = 7.5; % Given d_x = d_y
% Calculating the phase shifts
psi_x = k * d_x * sin(Theta) .* cos(Phi);
psi_y = k * d_y * sin(Theta) .* sin(Phi);
% Calculating the array factor
AF_x = (1/M) * (sin(M/2 * psi_x) ./ sin(psi_x/2));
AF_y = (1/N) * (sin(N/2 * psi_y) ./ sin(psi_y/2));
AF = abs(AF_x .* AF_y);
figure;
surf(psi_x, psi_y, AF, 'EdgeColor', 'none');
xlabel('$\psi_x$','Interpreter', 'latex');
ylabel('$\psi_y$', 'Interpreter', 'latex');
zlabel('Array Factor');
title('3D Planar Array Factor');
colorbar;

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by