In the Antenna Toolbox, EHfields can generate complex fields of an antenna. EHfields and fieldsCustom can plot 3-by-p complex vectors.
From the complex fields at one moment, we can derive the field at any time. I made an animation of the transient H fields in a period, and found that there is no frame consistent with the plot generated by fieldsCustom.
acf = 0.15;
f1 = fieldsCustom(acf*H,p);
f1.AutoScale = 'off';
ax1 = gca;
ax1.ZLim = [0 0.02];
Hmag = abs(acf*H); Hang = angle(H);
phi = pi/100:pi/100:2*pi;
ind = 61;
Hs = Hmag(:,ind).*cos(Hang(:,ind)+phi)+p(:,ind);
f2 = plot3(Hs(1,:),Hs(2,:),Hs(3,:),'k-');
f3 = quiver3(p(1,:),p(2,:),p(3,:),real(H(1,:)),real(H(2,:)),real(H(3,:)),...
for i = 1:length(phi)
Ht = Hmag.*cos(Hang+phi(i));
f3.UData = Ht(1,:);
f3.VData = Ht(2,:);
f3.WData = Ht(3,:);
As we know, amid three components of magnetic fields there may be phase shifts, thus the polariztion would be elliptical. A vector plotted by fieldsCustom does not locate in the plane where the curve traced by the end point of the corresponding transient vector is in.
What are the formulae of the plots generated by fieldsCustom? I made a comparison between the UData of fieldsCustom and abs of x componet of H field.
The abs of U data of fieldsCustom equals the abs of x componet of H field, but the relation of signs between them is not clear, so as the V, W data. And I plot the abs of H field. It can be seen that, the corresponding two vectors may be the same, or in the opposite direction, or symmetric with a plane.
figure(3); hold on;
f31 = fieldsCustom(H,p);
f31.AutoScale = 'off';
Now I'm confused about what is plotted by fieldsCustom or EHfields, and what is the physical significance of that visualization.