If I want to determine the phase at some frequency using bode(G, w) with w as a 1-element vector, bode() only returns values in the interval (-180°, 180°).
This is a problem in case of higher-order systems or delay systems with phases below -180°.
This problem does not occur for vectors w with n>1 elements.
So is it a bug or a feature? :D
G = tf(1, [1, 3, 3, 1])
bode(G, [1.7]) # ϕ = -178°
bode(G, [1.78]) # ϕ = 177° is wrong, should be ϕ=-360° + 177° = -183°