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

Program EXP1

Uploaded by

yuki.inabyss
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Program EXP1

Uploaded by

yuki.inabyss
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

TY BTECH (E&TC) : 2023–24 Control Systems : CS

Program:
1.
zeros = [2j, -2j];
poles = [3+4j, 3-4j, 0, 0];

K = 1;

sys = zpk(zeros, poles, K);

disp('transfer function:');
sys_tf = tf(sys)

Output:

2.
zeros = [-0.8+0.43j, -0.8-0.43j, -0.6];
poles = [-3.2+7.8j, -3.2-7.8j, -4.1+5.9j, -4.1-5.9j, -8];

K = 0.5;

sys = zpk(zeros, poles, K);

disp('transfer function:');
sys_tf = tf(sys)

Output:
TY BTECH (E&TC) : 2023–24 Control Systems : CS

Program:
1.
numerator = [3 1]; % 3s + 1
denominator = [1 7 5 1 0]; % s(s^3 + 7s^2 + 5s + 1)

sys = tf(numerator, denominator);

zeros_sys = zero(sys);
poles_sys = pole(sys);

disp('Zeros of the transfer function are:');


disp(zeros_sys);

disp('Poles of the transfer function are:');


disp(poles_sys);

Output:

2.
numerator = conv([7 1], [1 0 9]); % (7s + 1)(s^2 + 9)
denominator = [7 8 2 1 0]; % s(7s^3 + 8s^2 + 2s + 1)

sys = tf(numerator, denominator);

zeros_sys = zero(sys);
poles_sys = pole(sys);

disp('Zeros of the transfer function are:');


disp(zeros_sys);

disp('Poles of the transfer function are:');


disp(poles_sys);

Output:

You might also like