Write a program to plot versus for a LOW PASS FILTER Use thi

Write a program to plot versus for a LOW PASS FILTER. Use this program to graph the effect of the following component tolerances: (R, C) a (1%, 10%), (R, C) a (5%, 10%), (R, C) a (5%, 20%), (R, C) (10%, 20%). Write a program to plot versus for a HIGH PASS FILTER. Use this program to graph the effect of the following component tolerances: (R, C) a(1%, 10%), (R, C) a (5%, 10%), (R, C) a (5%, 20%), (R, C) a (10%, 20%)

Solution

(a)

clear all;
close all;
clc
R=input(\'Enter R value: \');
C=input(\'Enter C value: \');
H=tf([1/(R*C)],[1 (1/(R*C))])
bodemag(H)
for i=1:4
R1=input(\'Enter R tolerance value: \');
C1=input(\'Enter C tolerancevalue: \');
R=R+R*(R1/100);
C=C+C*(C1/100);
H=tf([1/(R*C)],[1 (1/(R*C))])
subplot(2,2,i)
bodemag(H)
end

(b)

clear all;
close all;
clc
R=input(\'Enter R value: \');
C=input(\'Enter C value: \');
H=tf([1 0],[1 (1/(R*C))])
bodemag(H)
for i=1:4
R1=input(\'Enter R tolerance value: \');
C1=input(\'Enter C tolerancevalue: \');
R=R+R*(R1/100);
C=C+C*(C1/100);
H=tf([1 0],[1 (1/(R*C))])
subplot(2,2,i)
bodemag(H)
end

 Write a program to plot versus for a LOW PASS FILTER. Use this program to graph the effect of the following component tolerances: (R, C) a (1%, 10%), (R, C) a

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site