# HG changeset patch # User jwe # Date 947745984 0 # Node ID 39496bf0ffdf04b90827f27f24544233290f8286 # Parent e71b3d1dd3279cea3c37aa98287a1e935c2958cf [project @ 2000-01-13 06:46:24 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2000-01-13 John W. Eaton + + * general/fliplr.m: Eliminate useless copy of arg. + * general/flipud.m: Ditto. + 2000-01-11 John W. Eaton * linear-algebra/cross.m: Only return a row vector if both args diff --git a/scripts/general/fliplr.m b/scripts/general/fliplr.m --- a/scripts/general/fliplr.m +++ b/scripts/general/fliplr.m @@ -40,7 +40,6 @@ usage ("fliplr (x)"); endif - y = x; nc = columns (x); y = x (:, nc:-1:1); diff --git a/scripts/general/flipud.m b/scripts/general/flipud.m --- a/scripts/general/flipud.m +++ b/scripts/general/flipud.m @@ -40,7 +40,6 @@ usage ("flipud (x)"); endif - y = x; nr = rows (x); y = x (nr:-1:1, :);