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

18 lines
315 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function X = expanded(F,state)
F = flatten(F);
if nargin == 1
if length(F.LMIid) == 0
X = [];
else
for i = 1:length(F.clauses)
X(i,1) = F.clauses{i}.expanded;
end
end
else
X = F;
for i = 1:length(F.clauses)
X.clauses{i}.expanded = state;
end
end