fliplr

Purpose

Revert the order of convex sets in the array.

Syntax

T = fliplr(S)
T = S.fliplr

Description

Overloaded method for reverting the order of sets in the array of convex sets.

Input Arguments

S

An array of ConvexSet objects Polyhedron, YSet, ... in the order of S = [S1, S2, S3, ...] .

Class: ConvexSet

Output Arguments

T

The array of the convex sets in the reverted order T = [..., S3, S2, S1].

Class: ConvexSet

Example(s)

Example 1

We have three polyhedra stored in the array.
 P1 = Polyhedron('lb', -1); 

 P2 = Polyhedron('lb', -2); 

 P3 = Polyhedron('lb', -3); 

 P = [P1, P2, P3] 
Array of 3 polyhedra.
To reverse the order of the polyhedra, call the fliplr method
 R = P.fliplr 
Array of 3 polyhedra.

See Also

horzcat, vertcat


© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk