Dynamic-Calibration/utils/YALMIP-master/@sdpvar/negatefactors.m

7 lines
151 B
Matlab
Executable File

function X = negatefactors(X,L)
if ~isempty(X.midfactors)
for i = 1:length(X.midfactors)
X.leftfactors{i} = -X.leftfactors{i};
end
end