%% Customized Sector Plot of Model with Complex Coefficients
% For this example, create a relative sector plot of a model with complex coefficients. Then, turn the grid on, rename the plot, and change the frequency scale.
% Create a state space model with complex data and specify a sector geometry.

A = [-3.50,-1.25-0.25i;2,0];
B = [1;0];
C = [-0.75-0.5i,0.625-0.125i];
D = 0.5;
Hc = [ss(A,B,C,D);1];
Q = [1 0.1;0.1 -1];

% Create an options set based on the toolbox preferences.

plotoptions = sectorplotoptions('cstprefs');
plotoptions.Grid = 'on';
plotoptions.FreqScale = 'linear';
plotoptions.Title.String = 'Relative Sector Index Plot of Complex-Coefficient Model';

% Now, create a sector plot with custom option set plotoptions.

sectorplot(Hc,Q,plotoptions)

% Copyright 2021 The MathWorks, Inc.