function x = atand(x)
%MATLAB Code Generation Library Function

%   Copyright 2002-2014 The MathWorks, Inc.
%#codegen
coder.replace;

eml_invariant(nargin > 0,'MATLAB:minrhs');
eml_invariant(isfloat(x),'Coder:toolbox:unsupportedClass',mfilename,class(x));
x = coder.internal.applyScalarFunctionInPlace(mfilename,@localAtanD,x);

%--------------------------------------------------------------------------

function x = localAtanD(x)
coder.inline('always');
radToDeg = coder.const(180/pi);
x = radToDeg.*coder.internal.scalar.atan(x);

%--------------------------------------------------------------------------
