BodePlot creates a Bode plot for the given function.
The x-axis is a logarithmic scale and represents the frequency in rad/sec.
- x = -2 : => ω = 0.01 rad/sec
- x = -1 : => ω = 0.1 rad/sec
- x = 0 : => ω = 1 rad/sec
- x = 1 : => ω = 10 rad/sec
- x = 2 : => ω = 100 rad/sec
- x = 3 : => ω = 1000 rad/sec
When the frequency is not given, then ω
min = 0.01 rad/sec and ω
max = 1000 rad/sec.
The y-axis is either the magnitude in dB (mode=0) or the phase in degrees (mode=1) or the phase in radians (mode=2).