function x2=last(x);

% function x2=last(x);
% 
% This returns the final value of a vector.

x2=x(length(x));
