function y = fliplr(x)
%FLIPLR Flip matrix in left/right direction.
%   FLIPLR(X) returns X with row preserved and columns flipped
%   in the left/right direction.
%   
%   X = 1 2 3     becomes  3 2 1
%       4 5 6              6 5 4
%
%   Class support for input X:
%      float: double, single
%
%   See also FLIPUD, ROT90, FLIPDIM.

%   Copyright 1984-2004 The MathWorks, Inc.
%   $Revision: 5.9.4.3 $  $Date: 2004/07/05 17:01:14 $

if ndims(x)~=2 
  error('MATLAB:fliplr:SizeX', 'X must be a 2-D matrix.'); 
end
y = x(:,end:-1:1);
