0% found this document useful (0 votes)
27 views

Matlab 2,3

This document contains information about control system engineering labs conducted at Erbil Polytechnic University. The document includes sample MATLAB code and output for analyzing transfer functions and time responses. Questions cover topics like converting between transfer function representations, pole-zero mapping, and time response analysis.

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 PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Matlab 2,3

This document contains information about control system engineering labs conducted at Erbil Polytechnic University. The document includes sample MATLAB code and output for analyzing transfer functions and time responses. Questions cover topics like converting between transfer function representations, pole-zero mapping, and time response analysis.

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 PDF, TXT or read online on Scribd
You are on page 1/ 11

Erbil polytechnic university

Erbil polytechnic engineering college

Mechanical and energy engineering depart

ment

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 depart

ment

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