Plotting phase distribution on a desired plane using the data retrieved from the EHfields function.
Afficher commentaires plus anciens
Hi,
I want to plot the phase distribution on a 2D plane for an array. I am able to plot the vector E and H fields on the desired plane using EHfields function. But how do I plot the phase of the E-field on the same plane? The desired plot in my case would look like a spiral distribution.
Attaching the code for your reference:
%% Circular Array parameters
N = 8;
r = 0.075;
l = 2;
%% Feed Locations OR Element Position
for n = 1: N
pos(n,:) = [r*cos(2*pi*(n-1)/N) r*sin(2*pi*(n-1)/N) 0];
end
%% Phase Shift assigned on each element (depends on l)
phs_element = NaN(N,1);
for n = 1 : N
phs_element(n,:) = (2*pi*n*l/N)*(180/pi);
end
%% Defining array
arr = conformalArray;
dip = dipole;
dip.Length = 0.058709;
dip.Width = 0.0012491;
arr.Element = dip;
arr.ElementPosition = pos;
arr.PhaseShift = phs_element;
%% Plotting E and H field vector on a desired plane
x = linspace(-1,1,100);
y = linspace(-1,1,100);
z = zeros(100);
figure
hslice = surf(x,y,z);
xlabel('x-axis');
ylabel('y-axis');
zlabel('z-axis');
colorbar;
rotate(hslice,[1,0,0],30);
xd = get(hslice,'XData');
yd = get(hslice,'YData');
zd = get(hslice,'ZData');
delete(hslice)
p = [xd(:)';yd(:)';zd(:)'];
EHfields(arr,2.4e9,p)
Thank You.
Biplob Biswas.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

