Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Tarea Analisis de Circuitos III

Cristian Alarcon

20131372074

b) Pasaaltos (High-Pass): Los filtros paso alto atenúan las señales situadas por debajo de una frecuencia de
corte (banda de atenuación) y permite el paso de señales situadas por encima de la frecuencia de corte (banda
de paso). La cantidad de atenuación depende del diseño del filtro.

syms s

R1=1.3e3 %Ohm

R1 = 1300

R2=1.3e3 %Ohm

R2 = 1300

C=150e-9 %F

C = 1.5000e-07

Zc=1/s*C

Zc =

1
W0=1/(R*C)

W0 = 66.6667

f=W0/(2*pi)

f = 10.6103

a=2/(f*R1*C)

a = 966.6439

b=1/(f^2*R1*R2*C^2)

b = 2.3360e+05

Q=(sqrt(b))/a

Q = 0.5000

Función de transferencia en el dominio de s

Hs=1/(1+((R2*(C+C)/(W0*R1*R2*C*C))*(1/s))+((1/(W0^2*R1*R2*C*C))*(1/s)))

Hs =

[n,d]=numden(Hs);

coeficientes del númerador y denominador

nc=coeffs(n,'all');
coeffs(d);
dc=fliplr(coeffs(d));

convirtiendo en variable númerica

num=double(nc)

num = 1×2
1013 ×
1.4294 0

den=double(dc)

2
den = 1×2
1016 ×
0.0014 8.6777

H=tf(num,den)

H =

1.429e13 s
---------------------
1.429e13 s + 8.678e16

Continuous-time transfer function.

función diagrama de bode en hz

options=bodeoptions

options =

FreqUnits: 'rad/s'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.FreqUnits='Hz'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'

3
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.magUnits='abs'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.phaseUnits='rad'

options =

4
FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'rad'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -3.1416
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

bode(H,options)

5
Diagrama de Boden en simulink

6
Tarea Analisis de Circuitos III

Cristian Alarcon

20131372074

a) Pasabajos (Low-Pass): Los filtros paso bajo permiten el paso de señales por debajo de una frecuencia de
corte (banda de paso) y atenúan señales por encima de la frecuencia de corte (banda de atenuación).

syms s

R1=1.3e3 %Ohm

R1 = 1300

R2=1.3e3 %Ohm

R2 = 1300

C=150e-9 %F

C = 1.5000e-07

Zc=1/s*C

Zc =

W0=1/(R*C)

1
W0 = 66.6667

f=W0/(2*pi)

f = 10.6103

a=f*C*(R1+R2)

a = 0.0041

b=(f^2)*R1*R2*C*C

b = 4.2808e-06

Q=(sqrt(b))/a

Q = 0.5000

Función de transferencia en el dominio de s

Hs=1/(1+f*C*(R1+R2)*s+(f^2)*R1*R2*C*C*s^2)

Hs =

[n,d]=numden(Hs);

coeficientes del númerador y denominador

nc=coeffs(n,'all');
coeffs(d);
dc=fliplr(coeffs(d));

convirtiendo en variable númerica

num=double(nc)

num = 1.1806e+21

den=double(dc)

den = 1×3
1021 ×
0.0000 0.0049 1.1806

H=tf(num,den)

2
H =

1.181e21
------------------------------------
5.054e15 s^2 + 4.885e18 s + 1.181e21

Continuous-time transfer function.

función diagrama de bode en hz

options=bodeoptions

options =

FreqUnits: 'rad/s'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.FreqUnits='Hz'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0

3
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.magUnits='abs'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.phaseUnits='rad'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'rad'

4
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -3.1416
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

bode(H,options)

Diagrama de Boden en simulink

5
6
Tarea Analisis de Circuitos III

Cristian Alarcon

20131372074

c) Pasabanda (Band-Pass): Esta configuración se logra al conectar en cascada una configuración pasabajos y
una pasaaltos, cada una con una frecuencia de corte diferente. Esto resulta en el paso selectivo de frecuencias
entre ambas frecuencias de corte, mientras se rechazan las frecuencias fuera de este rango.

syms s

R=1.3e3 %Ohm

R = 1300

R1=1.6e3

R1 = 1600

R2=2e3

R2 = 2000

C=150e-9 %F

C = 1.5000e-07

1
Zc=1/s*C

Zc =

W0=1/(R*C)

W0 = 5.1282e+03

f=W0/(2*pi)

f = 816.1792

La frecuencia central

fm=1/(2*pi*R*C)

fm = 816.1792

Wm=2*pi*fm

Wm = 5.1282e+03

La ganancia propia

G=1+(R2/R1)

G = 2.2500

La ganancia a frecuencia central

Am=G/(3-G)

Am = 3

Factor de calidad

Q=1/(3-G)

Q = 1.3333

Función de transferencia en el dominio de s

Hs=((G*R*C*fm*s)/(1+R*C*fm*(3-G)*s+R^2*C^2*fm^2*s^2))

Hs =

[n,d]=numden(Hs);

coeficientes del númerador y denominador

2
nc=coeffs(n,'all');
coeffs(d);
dc=fliplr(coeffs(d));

convirtiendo en variable númerica

num=double(nc)

num = 1×2
1016 ×
5.1607 0

den=double(dc)

den = 1×3
1017 ×
0.0365 0.1720 1.4412

H=tf(num,den)

H =

5.161e16 s
----------------------------------
3.65e15 s^2 + 1.72e16 s + 1.441e17

Continuous-time transfer function.

función diagrama de bode en hz

options=bodeoptions

options =

FreqUnits: 'rad/s'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]

3
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.FreqUnits='Hz'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.magUnits='abs'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}

4
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.phaseUnits='rad'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'rad'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -3.1416
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

bode(H,options)

5
Diagrama de Boden en simulink

6
Tarea Analisis de Circuitos III

Cristian Alarcon

20131372074

d) Rechazabanda (Notch): Similar al pasabanda, pero en este caso, las frecuencias de corte son muy
cercanas. Esto conduce al rechazo selectivo de un estrecho rango de frecuencias, mientras que las frecuencias
fuera de este rango son permitidas.

syms s
R=1e3

R = 1000

R1=1.3e3 %Ohm

R1 = 1300

R2=0.9e3 %Ohm

R2 = 900

R3=1.2e3

R3 = 1200

R4=2e3

1
R4 = 2000

C=150e-9 %F

C = 1.5000e-07

Zc=1/s*C

Zc =

alpha=R2/R3

alpha = 0.7500

beta=R2/R4

beta = 0.4500

fm=1/(2*pi*R*C)

fm = 1.0610e+03

A0=-beta/(4+alpha)

A0 = -0.0947

Q=(1+alpha)/3

Q = 0.5833

Función de transferencia en el dominio de s

Hsa=(-beta/(1+alpha))*(1+s^2)

Hsa =

Hsb=1+((3/(1+alpha))*s)+s^2

Hsb =

Hs=Hsa/Hsb

2
Hs =

[n,d]=numden(Hs);

coeficientes del númerador y denominador

nc=coeffs(n,'all');
coeffs(d);
dc=fliplr(coeffs(d));

convirtiendo en variable númerica

num=double(nc)

num = 1×3
-9 0 -9

den=double(dc)

den = 1×3
35 60 35

H=tf(num,den)

H =

-9 s^2 - 9
------------------
35 s^2 + 60 s + 35

Continuous-time transfer function.

función diagrama de bode en hz

options=bodeoptions

options =

FreqUnits: 'rad/s'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0

3
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.FreqUnits='Hz'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'dB'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: -Inf
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.magUnits='abs'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'deg'

4
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -180
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

options.phaseUnits='rad'

options =

FreqUnits: 'Hz'
FreqScale: 'log'
MagUnits: 'abs'
MagScale: 'linear'
MagVisible: 'on'
MagLowerLimMode: 'auto'
PhaseUnits: 'rad'
PhaseVisible: 'on'
PhaseWrapping: 'off'
PhaseMatching: 'off'
PhaseMatchingFreq: 0
ConfidenceRegionNumberSD: 1
MagLowerLim: 0
PhaseMatchingValue: 0
PhaseWrappingBranch: -3.1416
IOGrouping: 'none'
InputLabels: [1×1 struct]
OutputLabels: [1×1 struct]
InputVisible: {'on'}
OutputVisible: {'on'}
Title: [1×1 struct]
XLabel: [1×1 struct]
YLabel: [1×1 struct]
TickLabel: [1×1 struct]
Grid: 'off'
GridColor: [0.1500 0.1500 0.1500]
XLim: {[1 10]}
YLim: {[1 10]}
XLimMode: {'auto'}
YLimMode: {'auto'}

bode(H,options)

5
Diagrama de Boden en simulink

6
7

You might also like