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

    %% Tangent of Vector of Complex Angles
% Calculate the tangent of the complex angles in vector |x|.

% Copyright 2015 The MathWorks, Inc.

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