function y=reverse(x)
% reverse a vector
y = x(length(x):-1:1);
