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

Linear Control System EE-2010”C” Hameed Akbar

Linear Control System

Lab Task No. 10

Submitted by: Hameed Akbar

Class Code: EE-2010

Roll No/Student ID: CU-1267-2010

Instructor’s Verification: ______________

CECOS UNIVERSITY
Of Information Technology & Emerging Sciences
Peshawar
Linear Control System EE-2010”C” Hameed Akbar

Linear Control Systems


Lab Task # 10
1. For the following transfer function

a. Obtain the state-space representation using MATLAB


b. Plot the step response using MATLAB for the system represented in state
space, where u(t) is the unit step
c. Obtain the pole/zero representation using MATLAB
MATLAB CODE:-
num = [0 0 35 7];
den = [1 5 36 7];
g = tf(num,den)
[A,B,C,D] = tf2ss(num,den)
S = ss(A,B,C,D)
step(S)
[z,p,k] = tf2zp(num,den)
[num,den] = zp2tf(z,p,k)

STATE SPACE REPRESENTATION:-


A=
-5 -36 -7
1 0 0
0 1 0
B=
1
0
0
C=
0 35 7
D=
0

POLE/ZERO REPRESENTATION:-
z= p= k=

-0.2000 -2.4001 + 5.4111i 35


-2.4001 - 5.4111i
-0.1998
Linear Control System EE-2010”C” Hameed Akbar

2. For the following State Space Equation

a. Obtain the transfer function using MATLAB


b. Obtain the pole/zero representation using MATLAB

MATLAB CODE:-
A = [-4 -1;2 -3];
B = [1;3];
C = [1 2];
D = 0;
[num,den] = ss2tf(A,B,C,D)
[z,p,k] = ss2zp(A,B,C,D)
[A,B,C,D] = zp2ss(z,p,k)

TRANSFER FUNCTION:-
7 s + 28
--------------
s^2 + 7 s + 14

POLE/ZERO REPRESENTATION:-
z=

-4

p=

-3.5000 + 1.3229i
-3.5000 - 1.3229i

k=

7
Linear Control System EE-2010”C” Hameed Akbar

3. For the following State Space Equation

a. Obtain the transfer function using MATLAB


b. Obtain the pole/zero representation using MATLAB

MATLAB CODE:-
A = [0 3 7 0;0 0 1 0;0 0 0 1;-5 -6 9 5];
B = [0;5;7;2];
C = [1 3 6 5];
D = 0;
[num,den] = ss2tf(A,B,C,D)
g = tf(num,den)
[z,p,k] = ss2zp(A,B,C,D)
[A,B,C,D] = zp2ss(z,p,k)

TRANSFER FUNCTION:-
67 s^3 - 23 s^2 - 2509 s - 894
-------------------------------
s^4 - 5 s^3 - 9 s^2 + 41 s + 15

POLE/ZERO REPRESENTATION:-
z=
-5.7579
-0.3587
6.4599

p=
5.0624
3.0751
-2.7924
-0.3451

k=
67.0000

You might also like