You are on page 1of 4

11th August, 2016

AIM: to plot step response of a function and find associated parameters.


Code:
p=[1,2]
q=[1,2,1,1]
sys=tf(p,q)
l=stepinfo(sys)
plot(l)

Associated parameters:
p= 1
q=1

2
2

sys =
s+2
------------------s^3 + 2 s^2 + s + 1
Continuous-time transfer function.
l=
RiseTime: 1.6012
SettlingTime: 30.5543
SettlingMin: 1.3070
SettlingMax: 3.1605
Overshoot: 58.0267
Undershoot: 0
Peak: 3.1605
PeakTime: 4.1332

Plot:

Aim: to change settling time and rise time in step response of a system.
Code:
p=[1,2]
q=[1,2,1,1]
sys=tf(p,q)
l=stepinfo(sys,'risetimelimits',[0.05,0.95],'settling time threshold',0.03)
plot(l)

Changed Parameters:
l=
RiseTime: 1.8771
SettlingTime: 26.5063
SettlingMin: 1.3070
SettlingMax: 3.1605
Overshoot: 58.0267
Undershoot: 0
Peak: 3.1605
PeakTime: 4.1332

18th August, 2016


Aim: to plot bode plots of a system.
Code:
p=[1,2]
q=[1,2,1,1]
sys=tf(p,q)
l=bodeplot(sys)
plot(l)

Bode Plots:

Aim: to plot nyquist plots of a system.


Code:
p=[1,2]
q=[1,2,1,1]
sys=tf(p,q)
l=nyquistplot(sys)
plot(l)

Plots:

You might also like