Question: [ 8 marks ] Consider a second - order system whose response to a unit step input has 2 0 % overshoot, an approximate 2
marks Consider a secondorder system whose response to a unit step input has
overshoot, an approximate settling time of seconds, and final steadystate value of
Write a MATLAB script to do the following:
Compute xi and omega n precisely. Print them to the Command Window to decimal places.
Define a vector of time points from to seconds, spaced millisecond apart.
Evaluate the step response yt at each of these time points using the expression
from row of the Laplace Transform Pairs table and your precise calculations of xi
and omega n
Using the yt vector you computed above, find the maximum value of the step
response and calculate the percent overshoot.
Calculate the precise settling time by finding the last point in yt that falls outside
of the final value. There are several possible approaches for doing this. An
algorithmic strategy is to examine each point in the step response from beginning to
end and update a "bookkeeping" variable if ytkyfinal or ytkyfinal at
time point tk When the algorithm terminates, this bookkeeping variable will hold the
settling time.
Print percent overshoot and settling time to the Command Window to decimal places.
Compare your calculations of percent overshoot and settling time to the expected values
of and seconds, respectively. Briefly explain any discrepancies. Submit a printout
of your code and a screenshot of the output in the Command Window.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
