function [sv,w,FocusInfo] = sigmaresp(D,type,wspec,isPlotted)
% Generates singular value response data for MIMO LTI models. 
% Used by SIGMA.

%   Copyright 2020 The MathWorks, Inc.
[w,Focus] = parseFreqSpec(D,wspec,isPlotted && isreal(D)); 
FocusInfo = struct('Focus',Focus,'DynRange',Focus,'Soft',false);

% Compute singular values
h = fresp(D,w);
sv = ltipack.getSV(h,type);

% Sort frequencies if response is plotted
if isPlotted
   [w,is] = sort(w);  sv = sv(:,is);
end