Skip to content

Commit

Permalink
Changed the headlines, minor fixes according to feedback
Browse files Browse the repository at this point in the history
I capitalized "Using" in the first section, made the second section-title consistent with the first one, and fixed some things like single tick for inline code, and changed some explanatory text according to @olof3's suggestion (because the suggestion is "outdated" I could not accept the suggestion directly)
  • Loading branch information
KronosTheLate committed Oct 6, 2020
1 parent 65efc11 commit 8c1fb50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/src/man/creating_systems.md
Expand Up @@ -5,7 +5,7 @@ DocTestSetup = quote
end
```

## using the `tf()` function
## Using the `tf()` function
The basic syntax for creating a transfer function is
```julia
tf(num, den, Ts=0)
Expand All @@ -28,7 +28,7 @@ The transfer functions created using this method will be of type `TransferFuncti



Some times you only have an expression for the transfer-function, and you don't have it reduced to a fraction with polynomials of `s` as numerator and denomenator. No problem! The following method for defining transfer-functions finds the polynomial factors and defines the transfer-function for you:
For more general expressions, it is sometimes convenient to define `s = tf("s")` and then use the variable `s` in an expression:
### Example:
```julia
julia> s = tf("s")
Expand All @@ -41,7 +41,7 @@ s
Continuous-time transfer function model
```

We can now use ```s```to define the above transfer-function like this:
We can now use `s`to define a transfer-function:
```julia
julia> (s-1)*(s^2 + s + 1)/(s^2 + 3s + 2)/(s+1)

Expand All @@ -52,7 +52,8 @@ s^3 + 4*s^2 + 5*s + 2

Continuous-time transfer function model
```
## zpk - Pole-Zero-Gain Representation

## Using the `zpk()` function - Pole-Zero-Gain Representation
Sometimes it's better to represent the transfer function by its poles, zeros and gain, this can be done using
```julia
zpk(zeros, poles, gain, Ts=0)
Expand Down

0 comments on commit 8c1fb50

Please sign in to comment.