Dynamic-Calibration/utils/YALMIP-master/extras/@lmi/double.m

16 lines
234 B
Matlab
Executable File

function sys = double(X)
%double Overloaded.
X = flatten(X);
nlmi = length(X.LMIid);
if (nlmi == 0)
sys = NaN;
end
if nlmi>1
error('Double not applicable on list of constraints')
end
sys = double(X.clauses{1}.data);