You are on page 1of 1

MATLAB Code for Transfer Function Evaluation

clc
clear all
close all

syms('R1','R2','C','L','s')
A_ss = [-2/(C*(R1+R2)) 0;0 -2*R1*R2/(L*(R1+R2))];
B_ss = [1/(C*(R1+R2)) 1/(C*(R1+R2));R2/(L*(R1+R2)) -R2/(L*(R1+R2))];
C_ss = [0 (-2*R2*R1)/(R1+R2)];
D_ss = [R2/(R1+R2) -R2/(R1+R2)];
G_ss = C_ss*inv(s*eye(2)-A_ss)*B_ss+D_ss
R1_n = 1e3; % R1 = 1 kohms
R2_n = 2e3; % R1 = 2 kohms
L_n = 100e-3; % L = 100 mH
C_n = 150e-6; % C = 150 uF

Simulation Results for V1 = V2 = 5V @ 60 Hz

Comments/Observations
There is no output voltage because the voltages at the two sides of the inductor are identical and
cancel each other. This is because the circuit is symmetrical about the capacitor.

You might also like