0% found this document useful (0 votes)
30 views

Step Response of First Order System

The document simulates and plots the step responses of first and second order systems, as well as the responses of underdamped, undamped, overdamped, and critically damped systems. It also generates a Bode plot for a given transfer function. The simulations demonstrate how the step response and damping characteristics change for different system configurations and parameters.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Step Response of First Order System

The document simulates and plots the step responses of first and second order systems, as well as the responses of underdamped, undamped, overdamped, and critically damped systems. It also generates a Bode plot for a given transfer function. The simulations demonstrate how the step response and damping characteristics change for different system configurations and parameters.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

STEP RESPONSE OF FIRST ORDER SYSTEM

figure(1);
t=0:0.1:10;
s=0;
for i=0:1:5;
num=[0 2];
den=[s 3];
s=s+0.5;
j=step(num,den,t);
plot(t,j);
hold on;
end;
xlabel('----->T(SEC)');
ylabel('----->T(C(t))');
title('STEP RESPONSE OF FIRST ORDER SYSTEM');

Simulation:
STEP RESPONSE OF FIRST ORDER SYSTEM
0.7

0.6

----->T(C(t))

0.5

0.4

0.3

0.2

0.1

5
6
----->T(SEC)

10

STEP RESPONSE OF SECOND ORDER SYSTEM


figure(2);
t=0:0.1:10;
s=0;
for i=0:0.5:2;
num=[0 1];
den=[1 3 3];
s=s+0.5;
p=step(num,den,t);
plot(t,p);
hold on;
end;
xlabel('----->T(SEC)');
ylabel('----->T(C(t))');
title('STEP RESPONSE OF SECOND ORDER SYSTEM');

Simulation:
STEP RESPONSE OF SECOND ORDER SYSTEM
0.35

0.3

----->T(C(t))

0.25

0.2

0.15

0.1

0.05

5
6
----->T(SEC)

10

UNDERDAMPED:
clear all;
m=1;
b=1;
k=1;
t=0:0.1:50;
num=[0 0 1];
den=[m b k];
y=step(num,den,t);
plot(t,y);
title('UNDER DAMPED');
xlabel('TIME');
ylabel('AMPLITUDE');

Simulation:
UNDER DAMPED
1.4

1.2

AMPLITUDE

0.8

0.6

0.4

0.2

10

15

20

25
TIME

30

35

40

45

50

UNDAMPED:
clc;
clear all;
close all;
m=1;
b=0;
k=1;
t=0:0.1:50;
num=[0 0 1];
den=[m b k];
y=step(num,den,t);
plot(t,y);
title('UNDAMPED');
xlabel('TIME');
ylabel('AMPLITUDE');

Simulation:
UNDAMPED
2
1.8
1.6

AMPLITUDE

1.4
1.2
1
0.8
0.6
0.4
0.2
0

10

15

20

25
TIME

30

35

40

45

50

OVERDAMPED:
clear all;
m=1;
b=4;
k=1;
t=0:0.1:50;
num=[0 0 1];
den=[m b k];
y=step(num,den,t);
plot(t,y);
title('OVER DAMPED');
xlabel('TIME');
ylabel('AMPLITUDE');

Simulation:
OVER DAMPED
1
0.9
0.8

AMPLITUDE

0.7
0.6
0.5
0.4
0.3
0.2
0.1
0

10

15

20

25
TIME

30

35

40

45

50

CRITICALLY DAMPED:
clear all;
m=1;
b=2;
k=1;
t=0:0.1:50;
num=[0 0 1];
den=[m b k];
y=step(num,den,t);
plot(t,y);
title('CRITICALLY DAMPED');
xlabel('TIME');
ylabel('AMPLITUDE');

Simulation:
CRITICALLY DAMPED
1.4

1.2

AMPLITUDE

0.8

0.6

0.4

0.2

10

15

20

25
TIME

30

35

40

45

50

BODE PLOT:
clc;
clear all;
num=[0 20];
den1=[1 0];
den2=[1 3];
den3=conv(den1,den2);
den4=[1 4];
den=conv(den3,den4);
bode(tf(num,den));

Simulation:

Bode Diagram

Magnitude (dB)

50

-50

-100
-90

Phase (deg)

-135
-180
-225
-270
-1

10

10

10
Frequency (rad/sec)

10

You might also like