%% Compare Disk Margins of Multiple Systems
% Compare the disk-based gain and phase margins of two open-loop responses on the same plot.

L1 = tf(25,[1 10 10 10]);
L2 = tf([1 100],[1 10 20 50]);
diskmarginplot(L1,L2)

%
% You can customize the appearance of the plots using the LineSpec argument. Plot the margins again, using a blue dashed line for L1 and red dots for L2.

diskmarginplot(L1,'b--',L2,'r.')

%
% Copyright 2019 The MathWorks, Inc.