Mercurial > octave-nkf
comparison scripts/general/fliplr.m @ 5053:c08cb1098afc
[project @ 2004-10-19 23:10:54 by jwe]
author | jwe |
---|---|
date | Tue, 19 Oct 2004 23:10:55 +0000 |
parents | b92d59213e63 |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
5052:c6ef19da4b24 | 5053:c08cb1098afc |
---|---|
27 ## fliplr ([1, 2; 3, 4]) | 27 ## fliplr ([1, 2; 3, 4]) |
28 ## @result{} 2 1 | 28 ## @result{} 2 1 |
29 ## 4 3 | 29 ## 4 3 |
30 ## @end group | 30 ## @end group |
31 ## @end example | 31 ## @end example |
32 ## | |
33 ## Note that @code{fliplr} only workw with 2-D arrays. To flip N-d arrays | |
34 ## use @code{flipdim} instead. | |
32 ## @end deftypefn | 35 ## @end deftypefn |
33 ## | 36 ## |
34 ## Due to the difficult of define which axis about which to flip the | |
35 ## matrix @code{fliplr} only work with 2-D arrays. To flip N-D arrays | |
36 ## use @code{flipdim} instead. | |
37 ## @seealso{flipud, flipdim, rot90 and rotdim} | 37 ## @seealso{flipud, flipdim, rot90 and rotdim} |
38 | 38 |
39 ## Author: jwe | 39 ## Author: jwe |
40 | 40 |
41 function y = fliplr (x) | 41 function y = fliplr (x) |