Mercurial > hg > octave-nkf
diff scripts/general/rot90.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 4d777e05d47c |
line wrap: on
line diff
--- a/scripts/general/rot90.m +++ b/scripts/general/rot90.m @@ -44,7 +44,7 @@ ## @end group ## @end example ## -## Due to the difficulty of defining an axis about which to rotate the +## Due to the difficulty of defining an axis about which to rotate the ## matrix @code{rot90} only work with 2-D arrays. To rotate N-d arrays ## use @code{rotdim} instead. ## @seealso{rotdim, flipud, fliplr, flipdim} @@ -95,7 +95,7 @@ %! x2 = [2, 4; 1, 3]; %! x3 = [4, 3; 2, 1]; %! x4 = [3, 1; 4, 2]; -%! +%! %! assert(rot90 (x1) == x2); %! assert(rot90 (x1, 2) == x3); %! assert(rot90 (x1, 3) == x4);