Skip to content

Commit

Permalink
Always draw up to Nyquist frequency for discrete systems
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jul 10, 2023
1 parent a047432 commit 2e57172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ControlSystemsBase/src/freqresp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2e57172

Please sign in to comment.