From ff758e4814df847453f105512aac130ab681ef2f Mon Sep 17 00:00:00 2001 From: baggepinnen <cont-frb@ulund.org> Date: Mon, 10 Dec 2018 11:48:42 +0100 Subject: [PATCH] small tweaks --- src/FRTN35_lab1.jl | 6 +++--- src/arx.jl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FRTN35_lab1.jl b/src/FRTN35_lab1.jl index 2eb3cb0..ebafbc7 100644 --- a/src/FRTN35_lab1.jl +++ b/src/FRTN35_lab1.jl @@ -73,10 +73,10 @@ end y,u = prbs_experiment(duration = 10, amplitude = 1) plot([u y], lab=["u" "y"]) +bopl(G123, lab="FRA", legend=:left) + na = 4 # Order of A polynomial nb = 2 # Order of B polynomial arxtf, Σ = arx(h, y, u, na, nb) # Estimate transfer function with ARX method - -bopl(G123, lab="Measured transfer function") -bodeconfidence!(arxtf, Σ, ω = exp10.(LinRange(0,3,200)), linecolor=:red) # The exclamation mark (!) +bodeconfidence!(arxtf, Σ, ω = exp10.(LinRange(0,3,200)), lab="ARX na=$(na)") # The exclamation mark (!) # adds to the previous plot. If there is no plot open, remove the ! diff --git a/src/arx.jl b/src/arx.jl index f430a73..d074eaf 100644 --- a/src/arx.jl +++ b/src/arx.jl @@ -160,7 +160,7 @@ bodeconfidence ribbon := (lowermag, uppermag) yscale --> :log10 xscale --> :log10 - alpha --> 0.3 + fillalpha --> 0.2 ω, mag end @series begin @@ -169,7 +169,7 @@ bodeconfidence ylabel --> "Phase [deg]" xlabel --> "Frequency [rad/s]" xscale --> :log10 - alpha --> 0.3 + fillalpha --> 0.2 ω, phase end nothing -- GitLab