MatLab Assignment
MatLab Assignment
CONTROL ENGINEERING
(McE-42077)
MATLAB
Assignment – I
Solution:
Input Code:
Output:
Closed-loop transfer function
Exercise 2: Consider the feedback system depicted in the figure below
(a) Compute the closed-loop transfer function using the ‘series’ and ‘feedback’
functions
(b) Obtain the closed-loop system unit step response with the ‘step’ function
and verify that final value of the output is 2/5.
Solution:
Input Code:
Output
(a) Using an MATLAB m-file script, determine the closed-loop transfer function.
(b) Obtain the pole-zero map using the MATLAB command 'pzmap' function.
Where are the closed-loop system poles and zeros?
(c) Are there are any pole-zero cancellations? If so, use the MATLAB command
'minreal' function to cancel common poles and zeros in the closed-loop transfer
function.
(d) Why is it important to cancel common poles and zeros in the transfer
function?
Solution:
Input Code:
Output
(d)
The values of the poles and zeros of a system determine whether the system is
stable how well the system performs. Besides, when the added zero does not
exactly cancel the pole, a part of the root locus will be trapped in the right half
plane. This causes the closed-loop response to be unstable.
♦♦♦♦♦