0% found this document useful (0 votes)
31 views11 pages

Matlab 2,3

This document contains lab reports from control systems engineering courses at Erbil Polytechnic University. It includes questions using MATLAB to analyze transfer functions and time responses. In question 1, it uses tf2zp to convert a transfer function to zero-pole-gain form and pzmap to plot it. Question 2 defines a transfer function using zpk and converts it to the tf form. Questions 4.1 and 4.2 analyze time responses, including finding roots of characteristic equations with different damping ratios.

Uploaded by

Nabaz Muhamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views11 pages

Matlab 2,3

This document contains lab reports from control systems engineering courses at Erbil Polytechnic University. It includes questions using MATLAB to analyze transfer functions and time responses. In question 1, it uses tf2zp to convert a transfer function to zero-pole-gain form and pzmap to plot it. Question 2 defines a transfer function using zpk and converts it to the tf form. Questions 4.1 and 4.2 analyze time responses, including finding roots of characteristic equations with different damping ratios.

Uploaded by

Nabaz Muhamad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Erbil polytechnic university

Erbil polytechnic engineering


college
Mechanical and energy engineering
department
Control system engineering
Lab2
Advanced system analysis using MATLAB

Name: Nabaz Muhammad

Group: {A}

Q1
>> num=[1 4 3];
>> den=conv([1 5],[1 4 7]);
>> n=tf(num,den)
n=

s^2 + 4 s + 3
-----------------------
s^3 + 9 s^2 + 27 s + 35
>> [z,p,k]=tf2zp(num,den)

z=
-3
-1

p=
-50000 + 0.0000i
-20000 + 1.7321i
-20000 - 1.7321i

k=
1

>> pzmap(n)
Q2
>> g=zpk([-1],[-2 1],7)
g=
7 (s+1)
-----------
(s+2) (s-1)

>> h=tf(g)
h=
7s+7
-----------
s^2 + s – 2
Erbil polytechnic university

Erbil polytechnic engineering


college
Mechanical and energy engineering
department
Control system engineering
Lab3
Time response using MATLAB

Name: Nabaz Muhammad

Group: {A}

Q4.1
>> num=[10 0];
>> den=[1 20 500];
>> N=tf(num,den)
N=
10 s
----------------
s^2 + 20 s + 500

>> step(N)
Q4.2
Q4.2.1

i. >> den=[49 7 (1/14)^2];


>> r=roots(den)
r=
-0.1421
-0.0007

ii. >> denii=[49 7 (5/98)^2];


>> r=roots(denii)
r=
-0.1425
-0.0004

iii. >> deniii=[49 7 (5/49)^2];


>> r=roots(deniii)
r=
-0.1414
-0.0015
iv. >> deniv=[49 1];
>> r=roots(deniv)
r=
-0.0204
Q4.2.1 b

Ʈ=1
>> den=[49 1 1];
>> r=roots(den)
r=
-0.0102 + 0.1425i
-0.0102 - 0.1425i

Ʈ=10
>> denn=[49 10 10];
>> r=roots(denn)
r=
-0.1020 + 0.4401i
-0.1020 - 0.4401i

You might also like