I have an open-loop system function $L(s)$ and its Bode plot is
As MATLAB says, it is stable if we close the loop with unitary feedback. I thought that, seeing the Bode plots one could tell if the closed-loop system would be stable if the $0dB$$0\textrm{ dB}$ crossing occured at a lower frequency than the $-180°$ crossing. I made the Blode plots for $0.01L(s)$ and got the following:
Now the closed-loop system would be stable too, but this time the $0dB$$0\textrm{ dB}$ crossing occurs at a lower frequency than the $-180°$ crossing. Nevertheless, in both cases the closed-loop system turns out to be stable.
Then I made the Bode plots for $0.1L(s)$ and got this:
And now the closed-loop system is unstable.
So, my question is: how can one know, with just looking at the Bode plots, if the closed-loop system is going to be stable or not?


