function f = lastel(m)

% function f = lastel(m)
%
% <m> is a non-empty matrix
%
% return last element of <m>.
%
% example:
% isequal(6,lastel([3 4; 5 6]))

f = m(end);
