%% Inverse Shift Matrix Rows
% Rearrange the rows of a matrix to shift the nonnegative elements to the left.

Y = [-2 -1 0 1 2; 
    -10 -5 0 5 10];
X = ifftshift(Y,2)

% Copyright 2012 The MathWorks, Inc.