home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-21 | 439 b | 24 lines | [TEXT/ttxt] |
- //-------------------------------------------------------------------//
-
- // Syntax: flipud ( A )
-
- // Description:
-
- // flipud flips all the elements of a vector (or matrix) from top to
- // bottom.
-
- //-------------------------------------------------------------------//
-
- flipud = function ( A )
- {
- local (B);
-
- if (class (A) != "num")
- {
- error("flipud: Only matrix arguments supported");
- }
-
- B = A[A.nr:1:-1;];
- return B;
- };
-