0% found this document useful (0 votes)
273 views5 pages

CLC Num (0 0 1) Den (1 1 0) G TF (Num, Den) Sys Feedback (G, 1) Step (Num, Den)

The document summarizes the step response of a second order system modeled in both the time domain and z-domain (discrete time) with different sampling periods. It shows the transfer function, step response, and coefficients for the system in the time domain and then converted to the z-domain using a sampling period of 0.1 seconds and 0.4 seconds. The step response illustrates the system response over time for both the continuous and discrete time models.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
273 views5 pages

CLC Num (0 0 1) Den (1 1 0) G TF (Num, Den) Sys Feedback (G, 1) Step (Num, Den)

The document summarizes the step response of a second order system modeled in both the time domain and z-domain (discrete time) with different sampling periods. It shows the transfer function, step response, and coefficients for the system in the time domain and then converted to the z-domain using a sampling period of 0.1 seconds and 0.4 seconds. The step response illustrates the system response over time for both the continuous and discrete time models.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

% time domain sys%

clc
num=[0 0 1]
den=[1 1 0]
G=tf(num,den)
sys=feedback(G,1)
step(num,den)
Output:

Step Response
1500

Amplitude

1000

500

500

1000
Time (sec)

num =
0

den =
1

Transfer function:
1
------s^2 + s

1500

Transfer function:
1
----------s^2 + s + 1

%z domain sys%
% 1 st for sampling period .1%
G=tf(num,den)
Gz = c2d(G, 0.1)
num=[0 0.004837 .004679]
den=[1 -1.905 .9048]
sys=feedback(G,1)
dstep(num,den)

Output:
num =
0

den =
1

Transfer function:
1
------s^2 + s
Transfer function:
0.004837 z + 0.004679
---------------------z^2 - 1.905 z + 0.9048

Sampling time: 0.1


num =
0

0.0048 0.0047

den =
1.0000 -1.9050 0.9048
Transfer function:
1
----------s^2 + s + 1

Step Response
8000

7000

6000

Amplitude

5000

4000

3000

2000

1000

500

1000

1500
Time (sec)

2000

2500

% 2. st for sampling period .4%


G=tf(num,den)
Gz = c2d(G, 0.4)
num=[0 .00317 .002208]
den=[1 -2.928 2.143]
sys=feedback(G,1)
dstep(num,den)

Output:
num =
0

den =
1

Transfer function:
1
------s^2 + s
Transfer function:
0.07032 z + 0.06155
--------------------z^2 - 1.67 z + 0.6703

Sampling time: 0.4


num =
0

0.0032 0.0022

den =
1.0000 -2.9280 2.1430

Transfer function:
1
----------s^2 + s + 1

18

Step Response

x 10

16
14

Amplitude

12
10
8
6
4
2
0

10

15

20
Time (sec)

25

30

35

40

You might also like