Experiment # 7: Theory: ( (%% Graph of Response of Second Order System For Unit Step Input and Definition of
Experiment # 7: Theory: ( (%% Graph of Response of Second Order System For Unit Step Input and Definition of
Aim:- Write down the MATLAB code for calculation of rise time, peak time, peak overshoot
and settling time using MATLAB.
Theory: ((%% graph of response of second order system for unit step input and definition of
terms i.e rise time, peak time , maximum overshoot and expression for each term %%))
Matlab code:
clc
clear all
format short
% optional pi = 3.14
x=sqrt(1-del^2);
tr=((pi-phi)/(wn*x));
tp = (pi/(wn*x));
mp = 100*exp(-(pi*del)/x);
>>
Result: value of Rise time, Peak time and Maximum overshoot are obtained using matlab
code.