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

    %% Secant of Vector of Complex Angles
% Calculate the secant of the complex angles in vector |x|.

% Copyright 2015 The MathWorks, Inc.

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