Escolar Documentos
Profissional Documentos
Cultura Documentos
INSTRUMENTACIÓN
DEPARTAMENTO DE ELÉCTRICA Y
ELECTRÓNICA
ELECTROMAGNETISMO ii
NOMBRES:
• Sofía Intriago
• Steven Pogo
• Jeny Segovia
FECHA:
• Latacunga, 4 de febrero de 2019
TEMA
• EJERCICOS DE MATLAB
clc
clear all
disp(' UNIVERSIDAD DE LAS FUERZAS ARMADAS');
disp(' ELECTROMAGNETISMO II');
disp('NOMBREs: ');
disp('INTRIAGO');
disp('POGO');
disp('SEGOVIA');
disp('Ejercicios de Matlab');
muo=pi*4e-7;
eo=8.854e-12;
a=1;
er=2.26;
sigd=0.0002;
sigc=5.8e7;
f=1e9;
b=1.5:.1:10;
G=2*pi*sigd./log(b./a);
C=2*pi*er*eo./log(b./a);
L=muo*log(b./a)/(2*pi);
Rs=sqrt(pi*f*muo/sigc);
R=(1000*((1./a)+(1./b))*Rs)/(2*pi);
w=2*pi*f;
RL=R+i*w*L;
GC=G+i*w*C;
Gamma=sqrt(RL.*GC);
Zo=abs(sqrt(RL./GC))
alpha=real(Gamma);
loss=exp(-2*alpha*1);
lossdb=-10*log10(loss)
plot(Zo,lossdb)
xlabel('IMPEDANCIA CARACTERISTICA (ohms)')
ylabel('ATENUACION (dB/m)')
grid on
EJERCICIO 6.30 :
Modifique MATLAB 6.3 para dibujar el punto de carga normalizado y calcule la constante de reflexión,
dado Zo y Zl. Demostrar su programa con los valores del ejercicio 6.11
CÓDIGO DE PROGRAMACIÓN
clc
clear all
disp(' UNIVERSIDAD DE LAS FUERZAS ARMADAS');
disp(' ELECTROMAGNETISMO II');
disp('NOMBREs: ');
disp('INTRIAGO);
disp('POGO');
disp('SEGOVIA');
disp('Ejercicios de Matlab');
theta=linspace(-pi,pi,180);
Zo=input('Ingrese el valor de Impedancia Zo: ');
Zl=input('Ingrese el valor de Impedancia Zl: ');
a=1;
m=0;
n=0;
Re=a*cos(theta)+m;
Im=a*sin(theta)+n;
z=Re+i*Im;
plot(z,'k')
axis('equal')
axis('off')
hold on
plot([-1 1],[0,0],'k');
title('Carta de Smith');
rvalues=[0.5 1 2 4];
for r=rvalues
realcirc(r);
xpos=z2gamma(r);
h=text(xpos,0,num2str(r));
set(h,'VerticalAlignment','top','HorizontalAlignment','right');
end
xvalues=[0.2 0.5 1 2];
for x=xvalues
imcirc(x);
imcirc(-x);
xpos=real(z2gamma(i*x));
ypos=imag(z2gamma(i*x));
h=text([xpos xpos], [ypos -ypos], [' j' num2str(x); '-j'
num2str(x)]);
set(h(1),'VerticalAlignment','bottom');
set(h(2),'VerticalAlignment','top');
if xpos==0
set(h,'HorizontalAlignment','center');
elseif xpos<0
set(h,'HorizontalAlignment','right');
end
h=text(-1,0,'0');
set(h,'VerticalAlignment','middle','HorizontalAlignment','right');
end
%Impedancia Normalizada
Zn=Zl/Zo
%Calculo de SWR
g = (Zn - 1)/(Zn + 1)
m = abs(g)
th = angle(g)
polar(th, m, 'r+');
thd = th * 180/pi;
SWR = (1 + m)/(1 - m + eps)
rloss = -20 * log10(m + eps);
función z2gamma
function[result]=z2gamma(z)
result=(z-1)./(z+1);
end
función realcirc
function[h]=realcirc(r)
phi=1:1:360;
theta=phi*pi/180;
a=1/(1+r);
m=r/(r+1);
n=0;
Re=a*cos(theta)+m;
Im=a*sin(theta)+n;
z=Re+i*Im;
h=plot(z,'k');
axis('equal')
axis('off')
end
función imcirc
function [h]=imcirc(x)
a=abs(1/x);
m=1;
n=1/x;
k=1;
for t=1:1:360
angle(t)=t*pi/180;
Re(t)=a*cos(angle(t))+m;
Im(t)=a*sin(angle(t))+n;
z(t)=Re(t)+i*Im(t);
if abs(z(t))<=1
zz(k)=z(t);
k=k+1;
end
end
h=plot(zz,'k');
axis('equal')
axis('off')
end
GRAFICA DE MATLAB
A) 𝑍𝑙 = 0 𝑍0 = 50 B) 𝑍0 = 50 𝑍𝑙 = ∞
C) 𝑍𝐿 = 100 + 100𝑗 𝑍0 = 50 D) 𝑍𝐿 = 100 − 100𝑗 𝑍0 = 50
EJERCICIO 6.17:
Datos:
f = 2 GHz
l = 30cm
Ro= 100Ω
Vp = 0,70C
Formula:
𝑍𝐿 + 𝑗𝑅0 tan 𝛽𝑙
𝑍𝑖 = 𝑅0
𝑅0 + 𝑗𝑍𝐿 tan 𝛽𝑙
𝜔
𝑉𝑝 =
𝛽
Ecuaciones despejadas:
𝑗𝑅0 tan 𝛽𝑙 − 𝑅0 𝑍𝑖
𝑍𝐿 =
𝑗 tan 𝛽𝑙 𝑍𝑖 − 𝑅0
𝜔
𝛽=
𝑉𝑝
Respuesta:
2𝜋(2𝐺𝐻𝑧)
𝛽= = 59,839
0.70𝐶
𝑗(100) tan(59,839 ∗ 30 × 10−2 ) − 100(92,3 – j67.5)
𝑍𝐿 =
𝑗 tan(59,839 ∗ 30 × 10−2 )(92,3 – j67.5) − 100
𝑍𝐿 = 19.7418 − 𝑗48.2529
clear,clc, close all
disp('-------------------Universidad de las Fuerzas Armadas ESPE------
-------------')
disp('ASIGNATURA: Electromagnetismo II')
fprintf('ESTUDIANTES: Steven Pogo, Jenny Segovia, Sofia Intriago\n\n')
calcula los parámetros distribuidos para un cable coaxial a frecuencia de 1 GHz con radio
interno de 0.45mm y radio externo de 1.47mm, una permitividad de 2.26 una conductividad de
0 después que el usuario digite como entrada el radio interior y exterior, así como las
propiedades del material. Asume solamente materiales no magnéticos para utilizar.
%Inicialización de variables
eo=8.854e-12;
muo=pi*4e-7;
G=2*pi*sigd/log(b/a);
C=2*pi*er*eo/log(b/a);
L=muo*log(b/a)/(2*pi);
Rs=sqrt(pi*f*muo/sigc);
R=(1000*((1/a)+(1/b))*Rs)/(2*pi);
EJERCICIO 7.3:
120𝜋
𝑍0 = = 500
√1 − (6.56𝐺𝐻𝑧)2
10𝐺ℎ𝑧
𝑍𝑖𝑛 = 𝑗𝑍𝑜𝑡𝑎𝑛(𝛽𝑙)
2𝜋𝑓 𝑓𝑐
𝛽= √1 − ( )2
𝐶 𝑓
𝑟𝑎𝑑
𝛽 = 158
𝑠𝑒𝑔
𝑟𝑎𝑑
𝛽𝑙 = (158 ) (0.2𝑚) = 31.61535 𝑟𝑎𝑑
𝑠𝑒𝑔
𝑍𝑙 = 50
𝑍𝑙 + 𝑗𝑍𝑜tan(𝛽𝑙)
𝑍𝑖𝑛 = 𝑍𝑜 ∗
𝑍𝑜 + 𝑗𝑍𝑙tan(𝛽𝑙)
50 + 𝑗500tan(31.61353)
𝑍𝑖𝑛 = 500 ∗
500 + 𝑗50tan(31.61353)
𝑍𝑖𝑛 = 52 + 𝑗100 Ω
%% ENUNCIADO:
fprintf('\n\n7.1.-calcular la Zin cuando la línea de 20cm termina en
una carga de 50 ohmios en lugar de un corto.m\n')
fprintf('\nDATOS: \n')
%% DATOS:
c=3*10^8;
fc=10*10^9;
f=6.56*10^9;
B=((2*pi*fc)/(c ))*sqrt(1-(f/fc)^2);
Bl=B*0.2;
Zl=50;
Zin=Zo*((Zl+(500*tan(Bl)*1i))/(Zo+(50*tan(Bl)*1i)));
resultado=strcat(' Zin = ',num2str(Zin),' rad');
disp(resultado);