From 2e571727e31a4b4277c6c67dc632788e5bdadb74 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Mon, 10 Jul 2023 08:32:42 +0200 Subject: [PATCH] Always draw up to Nyquist frequency for discrete systems --- lib/ControlSystemsBase/src/freqresp.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ControlSystemsBase/src/freqresp.jl b/lib/ControlSystemsBase/src/freqresp.jl index 9b135b7b5..ce8148e26 100644 --- a/lib/ControlSystemsBase/src/freqresp.jl +++ b/lib/ControlSystemsBase/src/freqresp.jl @@ -417,8 +417,8 @@ function _bounds_and_features(sys::LTISystem, plot::Val) w1 = 0.0 w2 = 2.0 end - if isdiscrete(sys) # Do not draw above Nyquist freq for disc. systems - w2 = min(w2, log10(π/sys.Ts)) + if isdiscrete(sys) + w2 = log10(π/sys.Ts) # Draw up to Nyquist frequency for discrete systems end return [w1, w2], zp end