%% Obtain Singular Value Data
% Compute the singular values of the frequency response of a SISO system.
% If you do not specify frequencies, sigma chooses frequencies based on the system dynamics and returns them in the second output argument.

H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
[sv,wout] = sigma(H);

% Because H is a SISO model, the first dimension of sv is 1. The second dimension is the number of frequencies in wout.

size(sv)
length(wout)

% Thus, each entry along the second dimension of sv gives the singular value of the response at the corresponding frequency in wout.
% Copyright 2021 The MathWorks, Inc.