From be422491bcce0e0a8088ae580c1d15a0b404ed38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Hur=C3=A1k?= Date: Tue, 28 Apr 2026 21:02:45 +0200 Subject: [PATCH] Improved example of creating a transfer function The example of creating a transfer function now contains an asymmetric vector of coefficients, from which it is clear whether the coefficients correspond to the ascending or descending powers. --- docs/src/man/creating_systems.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/man/creating_systems.md b/docs/src/man/creating_systems.md index 8eaf5ea59..e221e94c0 100644 --- a/docs/src/man/creating_systems.md +++ b/docs/src/man/creating_systems.md @@ -21,14 +21,14 @@ tf(num, den, Ts) # Discrete-time system where `num` and `den` are the polynomial coefficients of the numerator and denominator of the polynomial and `Ts`, if provided, is the sample time for a discrete-time system. #### Example: ```jldoctest -tf([1.0],[1,2,1]) +tf([1.0],[1,2,3]) # output TransferFunction{Continuous, ControlSystemsBase.SisoRational{Float64}} 1.0 ------------------- -1.0s^2 + 2.0s + 1.0 +1.0s^2 + 2.0s + 3.0 Continuous-time transfer function model ``` @@ -559,4 +559,4 @@ P′d, _ = DescriptorSystems.grsol(dss(C), dss(inv(Si)-I(1))) P′s, _ = dss2ss(P′d) P′ = ss(P′s.A, P′s.B, P′s.C, P′s.D) bodeplot([P, P′]) -``` \ No newline at end of file +```