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

    %% Cosine of Vector of Complex Angles
% Calculate the cosine of the complex angles in vector |x|.

% Copyright 2015 The MathWorks, Inc.

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