function f = firstel(m)

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

f = m(1);
