%% Disk Margin Plot with Customized Appearance
% Plot the disk margins as a function of frequency of a system with the following open-loop response.

L = tf(25,[1 10 10 10]);

%
% For the plot, specify the following attributes:
% Frequency units: Hz
% Gain margins on a log scale, in absolute units
% Grid on

opts = diskmarginoptions;
opts.FreqUnits = 'Hz';
opts.MagScale = 'log';
opts.MagUnits = 'abs';
opts.grid = 'on';

diskmarginplot(L,opts)

%
% Copyright 2019 The MathWorks, Inc.