%% Create Bode Plot with Custom Settings
% Create a Bode plot that suppresses the phase plot and uses frequency units Hz instead of the default radians/second. Otherwise, the plot uses the settings that are saved in the toolbox preferences.
% First, create an options set based on the toolbox preferences.

opts = bodeoptions('cstprefs');

%
% Change properties of the options set.

opts.PhaseVisible = 'off';
opts.FreqUnits = 'Hz';

%
% Create a plot using the options.

h = bodeplot(tf(1,[1,1]),opts);

% Depending on your own toolbox preferences, the plot you obtain might look different from this plot. Only the properties that you set explicitly, in this example PhaseVisible and FreqUnits, override the toolbox preferences.
% Copyright 2015 The MathWorks, Inc.