MATLAB Coding For Step Response of First Order System Frit Order System ( ) ( ) 1 + 5 Clear CLC A (1) B (1 1) C TF (A, B) Step (C)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

MATLAB coding for step response of first order system

Frit order system


𝐶(𝑆) 1
=
𝑅(𝑠) 𝑠 + 5

clear all
clc
a=[1];
b=[1 1];
c=tf(a,b)
step(c)

Step Response
1

0.9

0.8

0.7

0.6
Amplitude

0.5

0.4

0.3

0.2

0.1

0
0 1 2 3 4 5 6 7 8 9
Time (seconds)
MATLAB coding for step response of first order system
Frit order system
𝐶(𝑆) 25
= 2
𝑅(𝑠) 𝑠 + 6𝑠 + 25

clear all
clc
a=[25];
b=[1 6 25];
c=tf(a,b)
step(c,5)
stepinfo(c)

Ans

RiseTime: 0.3711

SettlingTime: 1.1887

SettlingMin: 0.9083

SettlingMax: 1.0948

Overshoot: 9.4773

Undershoot: 0

Peak: 1.0948

Step Response PeakTime: 0.7829


1.4

1.2

0.8
Amplitude

0.6

0.4

0.2

0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time (seconds)

You might also like