MATLAB: Control system bode plot

bode plot

how to plot this two equatio and the resutant output is shown in the figure

Best Answer

Try this:
alpha=1;Wcr=10;
syms w
Mag(w)=piecewise(w<Wcr,20,w>=Wcr,-26.144+20*alpha*log(w));
w=logspace(-1,3,1000);
semilogx(w,Mag(w));grid on;xlabel('Frequency');ylabel('dB')