% Matlab code to generate bode plot
% This code assumes you have the Matlab Control System Toolbox with the 
% builtin bode function.
% This example is for the following transfer function
% s/(s+1e5)

clear all;

num=[1 0];
den=[1 1e5];
xfer_function=tf(num,den);

% For bode function: bode(xfer_function,{xaxis begin, xaxis end});
bode(xfer_function,{1e3, 1e7});
grid on;



