You are on page 1of 8

COMSATS-Lancaster Dual Degree Programme

## Lab Session 2:-

Q1. Develop mathematical model of the following lead-lag network. Represent this model in both transfer function form and pole-zero-gain form.

Q2. The output of the above network is inverted. This is normally rectified by cascading an inverting amplifier at the output of the lead-lag network as shown below. Find the overall transfer function of two cascaded system.

V out

### Matlab code:-

%----------------------------

% Question#1

%----------------------------

fprintf('Lead-Lag circuit in form of Transfer function and also Pole Zero Gain form\n') R1=input('Enter the value of R1 in ohms=\n') R2=input('Enter the value of R2 in ohms=\n') C1=input('Enter the value of C1 in farads=\n') C2=input('Enter the value of C2 in farads=\n') num=[-R1*R2*C1 -R2];

den=[ R1*R2*C2

R1];

sys=tf(num,den) [z,p,k] = zpkdata(sys)

## -1

### Matlab code:-

%----------------------------

% Question#2

%----------------------------

fprintf('Transfer function of system having an op-amp in series with Lead-Lag circuit\n')

R1=input('Enter the value of R1 in ohms=\n') R2=input('Enter the value of R2 in ohms=\n') R3=input('Enter the value of R3 in ohms=\n') R4=input('Enter the value of R4 in ohms=\n') C1=input('Enter the value of C1 in farads=\n') C2=input('Enter the value of C2 in farads=\n') num=[R1*R2*R4*C1 R2*R4]; den=[R1*R2*R3*C2 R1*R3]; sys=tf(num,den) [z,p,k] = zpkdata(sys)