uplus

Purpose

Unitary plus for a polyhedron.

Syntax

Q = +P;

Description

Creates a new copy Q of the polyhedron P by copying all fields.

Input Arguments

P

Polyhedron object.

Class: Polyhedron

Example(s)

Example 1

Create H-polyhedron
 P = ExamplePoly.randHrep; 
 Copy the polyhedron
 Q = +P; 
 
         P and Q are the same.
 P==Q 
ans =

     1

Q will not change if P is modified.
 P.normalize 
Polyhedron in R^2 with representations:
    H-rep (irredundant) : Inequalities   5 | Equalities   0
    V-rep               : Unknown (call computeVRep() to compute)
Functions : none
The H-description is different because P was changed.
 [P.H, Q.H] 
ans =

  Columns 1 through 5

        -0.973873353820151         0.227091811210997           1.7721262710235        -0.549550768330796         0.128146518069415
         0.525474934212241        -0.850809081706725          0.90121033341638         0.583076907496421        -0.944073819572629
        -0.707421776611562        -0.706791645377718         0.475188542788992         -1.48871808326762         -1.48739201755454
         0.930209391282812         0.367029274539865          1.30994430764807         0.710113694034025         0.280186930388549
         0.999999574238128     -0.000922780343876191         0.386625296472837          2.58648252807323      -0.00238675625287499

  Column 6

                         1
                         1
                         1
                         1
                         1

See Also

uminus


© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch