matlab : R2018a 64bit
OS : Windows 10 x64
typesetting : Markdown
blog : my.oschina.net/zhichengjiu
gitee : gitee.com/zhichengjiu
code
clear
clc
close
num=[0 1];
den=[1 0];
w=logspace(-1,1,60);
[mag,pha,w1]=bode(num,den,w)
figure(1),semilogx(w1,mag);grid on;
xlabel('frequency');ylabel('gain db');
figure(2),semilogx(w1,20*log(abs(mag)));grid on;
xlabel('frequency');ylabel('phase');