0% found this document useful (0 votes)
50 views13 pages

%question 1 Ca 1 Sys TF ( (5), (1 A) ) P Pole (Sys)

This document contains MATLAB code for analyzing transfer functions with different pole values. It creates transfer functions with poles at various values and plots their pole-zero maps. It also calculates poles, zeros, damping ratios and step responses for different transfer functions to observe how the responses change with the pole placement. The questions explore how varying the pole location affects the pole-zero map, damping ratio and step response for different transfer functions.

Uploaded by

Azlan Aziz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views13 pages

%question 1 Ca 1 Sys TF ( (5), (1 A) ) P Pole (Sys)

This document contains MATLAB code for analyzing transfer functions with different pole values. It creates transfer functions with poles at various values and plots their pole-zero maps. It also calculates poles, zeros, damping ratios and step responses for different transfer functions to observe how the responses change with the pole placement. The questions explore how varying the pole location affects the pole-zero map, damping ratio and step response for different transfer functions.

Uploaded by

Azlan Aziz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

QUESTION 1 (a)

%QUESTION 1
ca=1;
sys=tf([ 5],[1 a])
p=pole(sys)

answer
Transfer function:
5
----s+1
p=
-1

%QUESTION 1
a=2;
sys=tf([ 5],[1 a])
p=pole(sys)
sgrid
pzmap(sys)
grid on
ANSWER
Transfer function:
5
----s+2

p=

-2

%QUESTION 1

clc;
a=5;
sys=tf([ 5],[1 a])
p=pole(sys)
sgrid
pzmap(sys)
grid on
answer
Transfer function:
5
----s+5

p=

-5

%QUESTION 1
clc;

a=-3;
sys=tf([ 5],[1 a])
p=pole(sys)
sgrid
pzmap(sys)
grid on

answer

Transfer function:
5
----s-3

p=

QUESTION 1(b)
%QUESTION 1
clc;
a=1;

sys=tf([ 5],[1 a])


step(sys)

%QUESTION 1
clc;
a=2;
sys=tf([ 5],[1 a])
step(sys)

%QUESTION 1
clc;
a=5;
sys=tf([ 5],[1 a])
step(sys)

%QUESTION 1
clc;
a=-3;
sys=tf([ 5],[1 a])
step(sys)

QUESTION 1 C

Run code in matlab R2001b

QUESTION 2

%question 2
clc;
sys=tf([1 3 3],[1 6 5 7 4])
p=pole(sys)
z=zero(sys)

answer

Transfer function:
s^2 + 3 s + 3
----------------------------s^4 + 6 s^3 + 5 s^2 + 7 s + 4

p=
-5.2766
-0.0301 + 1.0687i
-0.0301 - 1.0687i
-0.6632
z=
-1.5000 + 0.8660i
-1.5000 - 0.8660i

QUESTION 3

a)
%question 3

clc;
a=0;
sys=tf([15],[1 a 20]);

p=pole(sys)
sgrid
pzmap(sys)
%grid on
ANSWER
p=

0 + 4.4721i
0 - 4.4721i

%question 3

clc;
a=3;
sys=tf([15],[1 a 20]);
p=pole(sys)
sgrid
pzmap(sys)
%grid on

Answer
p=

-1.5000 + 4.2131i
-1.5000 - 4.2131i

%question 3

clc;
a=8;
sys=tf([15],[1 a 20]);
p=pole(sys)
sgrid
pzmap(sys)
%grid on
ANSWER

p=
-4.0000 + 2.0000i
-4.0000 - 2.0000i

b)
%question 3b
clc;
a=0;
sys=tf([15],[1 a 20]);
damp(sys)

ANSWER
Eigenvalue

0.00e+000 + 4.47e+000i

Damping

0.00e+000

Freq. (rad/s)

4.47e+000

0.00e+000 - 4.47e+000i

c)
%question 3c
Clc;
a=0;
sys=tf([15],[1 a 20]);
step(sys)

0.00e+000

4.47e+000

%question 3c

clc;
a=3;
sys=tf([15],[1 a 20]);
step(sys)
%grid on

d)

You might also like