%% Customized Bode Plot of Transfer Function
% For this example, create a Bode plot of the following continuous-time SISO dynamic system. Then, turn the grid on, rename the plot and change the frequency scale.
% sys(s) = \frac{{{s^2} + 0.1s + 7.5}}{{{s^4} + 0.12{s^3} + 9{s^2}}}.
% Create the transfer function sys.

sys = tf([1 0.1 7.5],[1 0.12 9 0 0]);

% Next, create the options set using bodeoptions and change the required plot properties.

plotoptions = bodeoptions;
plotoptions.Grid = 'on';
plotoptions.FreqScale = 'linear';
plotoptions.Title.String = 'Bode Plot of Transfer Function';

% Now, create the Bode plot with the custom option set plotoptions.

bodeplot(sys,plotoptions)

% bodeplot automatically selects the plot range based on the system dynamics.
% Copyright 2020 The MathWorks, Inc.