You can use the new feature movminintroduced in MATLAB R2016a to solve this problem with minimal movement:
In = [1 2 3; 4 5 6; 7 8 9]; % Sample data
C = size(In, 2); % Get the number of columns
out = movmin(In(:, [2:C 1:(C-1)]), [0 C-2], 2, 'Endpoints', 'discard')
out =
2 1 1
5 4 4
8 7 7
, In, , C-1 , . 'Endpoints', 'discard' , .