function [A,B,C,D,E,dx0,x0,u0,y0,Delays] = uminusDF(sys,varargin)
% Constructs data function for -SYS.

%   Copyright 2022 The MathWorks, Inc.
[A,B,C,D,E,dx0,x0,u0,y0,Delays] = sys.DataFunction(varargin{:});
[ny,~] = iosize(sys);
if size(D,1)>ny
   C(1:ny,:) = -C(1:ny,:);
   D(1:ny,:) = -D(1:ny,:);
   y0(1:ny,:) = -y0(1:ny,:);
else
   C = -C;
   D = -D;
   y0 = -y0;
end