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

    %% Cotangent of Vector of Complex Angles
% Calculate the cotangent of the complex angles in vector |x|.

% Copyright 2015 The MathWorks, Inc.

x = [-i pi+i*pi/2 -1+i*4];
y = cot(x)