%% Plot the Inverse Secant Function
% Plot the inverse secant function over the intervals -5 \le x \le -1 and 1 \le x \le 5.

x1 = -5:0.01:-1;
x2 = 1:0.01:5;
plot(x1,asec(x1),'b')
hold on
plot(x2,asec(x2),'b')
grid on

% Copyright 2015 The MathWorks, Inc.