function y = angle(x)
% Embedded MATLAB Library function.
% 
% Limitations:
% No known limitations.

% $INCLUDE(DOC) toolbox/eml/lib/matlab/angle.m $
% Copyright 2002-2004 The MathWorks, Inc.
% $Revision: 1.1.6.1 $  $Date: 2004/07/24 23:36:08 $

% Error check nargin
eml_assert(nargin > 0, 'error', 'Not enough input arguments.');
eml_assert(isfloat(x), 'error', ['Function ''angle'' is not defined for values of class ''' class(x) '''.']);

y = atan2(imag(x),real(x));
