Sallen Key Filter Circuit
Автор: Jacob Herd
Загружено: 2020-12-19
Просмотров: 268
Описание:
MATLAB Code Below
%Sallen Key Filter Frequency Response
%Jacob Herd
%Setting capacitor and resistor values, calculating the cutoff frequency
C1 = 220e-6; C2 = 1e-6; R1 = 1000; R2 = 100;
fc = 1/(2*pi*sqrt(R1*C1*R2*C2))
%Setting a range of frequency values and using them to get the angular
%frequencies and s values.
f = [0.1:1e3];
w = 2*pi*f;
s = j*w;
%Transfer function: H = (1/(R1*C1*R2*C2))./(s.^2 + s.*(1/(R2*C1) + 1/(R1*C1)) + 1/(R1*C1*R2*C2));
%Setting transfer function coefficients, a & b.
b = [1/(R1*C1*R2*C2)];
a = [1 (1/(R2*C1) + 1/(R1*C1)) 1/(R1*C1*R2*C2)];
%Plotting the frequency response graph
figure(1)
freqs(b,a,w)
%Plotting the step response
figure(2)
step(tf(b,a))
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: