Sie sind auf Seite 1von 1

clear all

I0=1;
f=10^9;
w=2*pi*f;
c=3*10^8;
lambda=c/f;
L=lambda/8:2*lambda/100:2*lambda;
ep1=8.854*10^(-12);
mu1=4*pi*10^(-7)*1;
eta1=sqrt(mu1/ep1);
k0=2*pi/lambda;
theta=0:.1:2*pi;
phi=0:.1:2*pi;
[phi,theta]=meshgrid(phi,theta);
figure;
for n=1:length(L)
E=(I0*eta1/2*pi)*(cos(k0*L(n)*cos(theta)/2)-cos(k0*L(n)/2))./sin(theta);
Z=E.*cos(theta);X=E.*cos(phi).*sin(theta);Y=E.*sin(phi).*sin(theta);
mesh(X,Y,Z,E);
axis([-1500 1500 -1500 1500 -900 900])
getframe;
end

Published with MATLAB® R2014b

Das könnte Ihnen auch gefallen