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

When b1=0.

4
clear;
clc;
num=[7];
den=[1 0.4 1];
T=tf(num,den);
[wn,z]=damp(den)
t=0:0.2:30;
y=step(T,t);
plot(t,y);
grid
title('unit step response'),ylabel('c(t)'),xlabel('Time in seconds')

unit step response


12

10

c(t)

wn =

1
1

10

15
Time in seconds

20

25

30

z=

0.2000
0.2000

When b1=0.2
clear;
clc;
num=[7];
den=[1 0.2 1];
T=tf(num,den);
[wn,z]=damp(den)
t=0:0.2:30;
y=step(T,t);
plot(t,y);
grid
title('unit step response'),ylabel('c(t)'),xlabel('Time in seconds')

unit step response


14

12

10

c(t)

0
0

wn =

1
1

z=

0.1000
0.1000
B1=0.6
clear;

10

15
Time in seconds

20

25

30

clc;
num=[7];
den=[1 0.6 1];
T=tf(num,den);
[wn,z]=damp(den)
t=0:0.2:30;
y=step(T,t);
plot(t,y);
grid
title('unit step response'),ylabel('c(t)'),xlabel('Time in seconds')

unit step response


10
9
8
7

c(t)

6
5
4
3
2
1
0

wn =

1
1

z=

10

15
Time in seconds

20

25

30

0.3000
0.3000
B=1
unit step response
9
8
7
6

c(t)

5
4
3
2
1
0

wn =

1.0000
1.0000

z=

0.5000

10

15
Time in seconds

20

25

30

0.5000

Table:

B1
.2
.4
.6
1.0

Wn
1
1
1
1

Z
.1
.2
.3
.5

Wd
.99
.98
.94
.87

Cp
12.1
10.69
9.606
8.14

tp
3.2
3.19
3.285
3.59

Mo

to
0.98175
0.9848
0.9563
0.8738

You might also like