%% Graph of Hyperbolic Cotangent
% Plot the hyperbolic cotangent over the domain -\pi < x < 0 and 0 < x < \pi.

x1 = -pi+0.01:0.01:-0.01; 
x2 = 0.01:0.01:pi-0.01;
y1 = coth(x1);
y2 = coth(x2);
plot(x1,y1,x2,y2)
grid on

% Copyright 2015 The MathWorks, Inc.