Can we draw Bode plot for unstable system?
It can be obtained experimentally by providing inputs to the system and measuring the output frequencies (if the system is stable) and it can also be obtained by hand (even if the system is not stable) [1]. The tricky thing about Bode plots is that they will not always tell you if your system is unstable or not.
Which Matlab command can be used for drawing Bode plot?
h = bodeplot( sys ) plots the Bode magnitude and phase of the dynamic system model sys and returns the plot handle h to the plot. You can use this handle h to customize the plot with the getoptions and setoptions commands.