0% found this document useful (0 votes)
28 views6 pages

Clear G0 1 Tau 0.01 G TF (G0, (Tau 1) ) Step (G) : Compte Rendu Du 4 Sept.-12 %question 1-1 Et 1-2

This document contains the results of several simulations of first-order systems in response to step inputs. It includes: 1) The step response of a first-order system with a time constant of 0.01 seconds, settling within 0.03 seconds. 2) The step responses of three first-order systems with different time constants, showing different settling times. 3) Bode plots of first-order systems with different gain and time constant values, showing changes in magnitude and phase with frequency. 4) A plot of the output and error of a simulated process over time.

Uploaded by

bastoon38
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)
28 views6 pages

Clear G0 1 Tau 0.01 G TF (G0, (Tau 1) ) Step (G) : Compte Rendu Du 4 Sept.-12 %question 1-1 Et 1-2

This document contains the results of several simulations of first-order systems in response to step inputs. It includes: 1) The step response of a first-order system with a time constant of 0.01 seconds, settling within 0.03 seconds. 2) The step responses of three first-order systems with different time constants, showing different settling times. 3) Bode plots of first-order systems with different gain and time constant values, showing changes in magnitude and phase with frequency. 4) A plot of the output and error of a simulated process over time.

Uploaded by

bastoon38
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/ 6

Compte rendu du 4 sept.

-12
%Question 1-1 et 1-2
clear
G0 = 1
Tau = 0.01
G = tf(G0, [Tau 1])
step (G)

Step Response
1
0.9

System: G
Settling Time (sec): 0.03

0.8

System: G
Time (sec): 0.01
Amplitude: 0.631

0.7

Amplitude

0.6
0.5
0.4
0.3
0.2
0.1
0

0.01

0.02

0.03
Time (sec)

%Question 1-3
clear
close
G0 = 1
Tau1 = 0.001
Tau2 = 0.005
Tau3 = 0.01
G1 = tf(G0, [Tau1 1])
G2 = tf(G0, [Tau2 1])
G3 = tf(G0, [Tau3 1])
step (G1,G2,G3)

0.04

0.05

0.06

System: G2 Step Response


Settling Time (sec): 0.015

1
0.9

System: G1
Settling Time (sec): 0.003

System: G3
Settling Time (sec): 0.03

0.8
0.7

Amplitude

0.6
0.5
0.4
0.3
0.2
0.1
0

0.01

0.02

0.03
Time (sec)

%question 1-4

clear
close
G01 = 1
G02 = 5
G03 = 10
Tau = 0.01
G1 = tf(G01, [Tau 1])
G2 = tf(G02, [Tau 1])
G3 = tf(G03, [Tau 1])
step (G1,G2,G3)

0.04

0.05

0.06

Step Response
10
System: G3
Final Value: 10
System: G3
Settling Time (sec): 0.03

9
8
7

Amplitude

System: G2
Final Value: 5

5
4
3
2

System: G1
Final Value: 1

1
0

0.01

0.02

0.03
Time (sec)

%question 2-1
clear
close
G0 = 1
Tau = 0.01
G = tf(G0, [Tau 1])
bode(G)

0.04

0.05

0.06

Bode Diagram

Magnitude (dB)

0
System: G
Frequency (rad/sec): 499
Magnitude (dB): -14.1

-10

-20
System: G
Frequency (rad/sec): 5.15e+003
Magnitude (dB): -34.2

-30

Phase (deg)

-40
0

-45
System: G
Frequency (rad/sec): 99.9
Phase (deg): -45
-90
0

10

10

10

Frequency (rad/sec)

%question 2-2
clear
close
G01 = 2
G02 = 1
Tau1 = 0.5
Tau2 = 0.1
G1 = tf(G01, [Tau1 1])
G2 = tf(G02, [Tau2 1])
bode (G1,G2)
hold on
G03 = 4
Tau3 = 1
G3 = tf(G03, [Tau3 1])
bode (G3)

10

10

Bode Diagram
20

Magnitude (dB)

G1
G2
G3

-20

-40

Phase (deg)

-60
0
System: G1
Frequency (rad/sec): 2
Phase (deg): -45
-45
System: G3
Frequency (rad/sec): 0.999
Phase (deg): -45

System: G2
Frequency (rad/sec): 9.98
Phase (deg): -45

-90
-2

10

-1

10

10

10

Frequency (rad/sec)

%question 3-1
clear
close
sim('TP_A')
plot(tout, s, 'b',tout, e, 'r')

10

10

1
data1
data2

0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09

0.1

You might also like