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

    %% Plot the Inverse Cotangent Function
% Plot the inverse cotangent function over the intervals $-2 \pi \le x <
% 0$ and $0 < x \le 2\pi$.
%%

% Copyright 2015 The MathWorks, Inc.

x1 = -2*pi:pi/30:-0.1;
x2 = 0.1:pi/30:2*pi;
plot(x1,acot(x1),'b')
hold on
plot(x2,acot(x2),'b')
grid on