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

17 lines
364 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function LIST = constraintclass(F,property)
%CONSTRAINTCLASS Returns a list describing the constraints
% Author Johan L<EFBFBD>fberg
% $Id: constraintclass.m,v 1.2 2005-02-04 10:10:26 johanl Exp $
F = flatten(F);
if isempty(F.clauses)
LIST = [];
else
LIST = [];
for i = 1:length(F.clauses)
LIST = [LIST;F.clauses{i}.type];
end
end