1
- # Creating Transfer Functions
1
+ {meta}
2
+ DocTestSetup = quote
3
+ using ControlSystems
4
+ end
2
5
3
6
## tf - Rational Representation
4
7
The syntax for creating a transfer function is
@@ -23,7 +26,7 @@ Continuous-time transfer function model
23
26
The transfer functions created using this method will be of type ` TransferFunction{SisoRational} ` .
24
27
25
28
## zpk - Pole-Zero-Gain Representation
26
- Sometime it's better to represent the transferfunction by its poles, zeros and gain, this can be done using
29
+ Sometimes it's better to represent the transferfunction by its poles, zeros and gain, this can be done using
27
30
``` julia
28
31
zpk (zeros, poles, gain, Ts= 0 )
29
32
```
@@ -45,7 +48,7 @@ Continuous-time transfer function model
45
48
The transfer functions created using this method will be of type ` TransferFunction{SisoZpk} ` .
46
49
47
50
## tfa - Generalized Representation
48
- If you want to work with transfer functions that are not rational function , it is possible to use the ` tfa ` representation
51
+ If you want to work with transfer functions that are not rational functions , it is possible to use the ` tfa ` representation
49
52
``` julia
50
53
tfa (str:: String ), tfa (str:: Expr )
51
54
```
@@ -54,20 +57,20 @@ This function will either convert `str` to an expression or directly accept an `
54
57
``` julia
55
58
tfa (" 1/((s+1)*exp(-sqrt(s)))" )
56
59
57
- # output
60
+ # # output
58
61
59
62
TransferFunction:
60
63
1 / ((s+ 1 )* exp (- sqrt (s)))
61
64
62
65
Continuous- time transfer function model
63
66
```
64
67
The transfer functions created using this method will be of type ` TransferFunction{SisoGeneralized} ` .
65
- This type will work with some functions like ` bodeplot, stepplot ` but not others ( like ` poles ` ) .
68
+ This type will work with some functions like ` bodeplot, stepplot ` but not others , like ` poles ` .
66
69
67
70
## Converting between types
68
71
It is sometime useful to convert one representation to another, this is possible using the same functions, for example
69
72
``` julia
70
- tf (zpk ([- 1 ],[1 ],2 ))
73
+ tf (zpk ([- 1 ], [1 ], 2 , 0.1 ))
71
74
72
75
# output
73
76
0 commit comments