%% Inverse Cotangent of Vector

x = [0 20 Inf];
y = acotd(x)

% The acotd operation is element-wise when you pass a vector, matrix, or N-D array.
% Copyright 2012 The MathWorks, Inc.