www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/InverseCotangentOfVectorExample.m

    %% 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.