function B = reverseCol(A)
% B is a matrix obtained by reversing the order of the columns in matrix A

[nr, nc]= size(A);
B= zeros(nr,nc);
for k= 1:nc
B(:,k) = A(:,nc-k+1);
end