Returns true if the set contains given function name.
ts = hasFunction(Set, FuncName)
ts = Set.hasFunction(FuncName)
Set |
Any object derived from the ConvexSet class, e.g. Polyhedron, YSet, ... Class: ConvexSet |
FuncName |
Name of the function to test. Class: char |
ts |
Logical statement if the set contains the function FuncName or not. Class: logical |
P = ExamplePoly.randHrep;
P.addFunction(AffFunction([1, -2]),'a');
P.addFunction(QuadFunction([0 0.4;-0.1 0.2]),'b');Does the set P contain the function "b" ?
P.hasFunction('b')
ans = 1
◀ | listfunctions | convexset | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk