JuliaControl / ControlSystems.jl

A Control Systems Toolbox for Julia
https://juliacontrol.github.io/ControlSystems.jl/stable/
Other
509 stars 85 forks source link

`bodeplot`... is the magnitude given in dB? #839

Closed B-LIE closed 1 year ago

B-LIE commented 1 year ago

I'm used to Bodeplots where the magnitude is given in dB (20*log10(abs(h(jw)))). It is not 100% clear to what bodeplot does, but I suspect the magnitude is not given in dB...

Q: does bodeplot give the magnitude dB?

baggepinnen commented 1 year ago

The docstring for bodeplot indicates how to change the magnitude scale https://juliacontrol.github.io/ControlSystems.jl/stable/lib/plotting/#ControlSystemsBase.bodeplot you use https://juliacontrol.github.io/ControlSystems.jl/stable/lib/plotting/#ControlSystemsBase.setPlotScale-Tuple{AbstractString}