% example2.m
% Plot 5 / (1+x^2) over -5 <= x <= 5
%
%  Set the data pairs.
%
xlist = linspace ( -5.0, 5.0, 201 );
ylist = 5 ./ ( 1 + xlist .^ 2 );
%
%  Clear the screen.
%
clf
%
%  Draw with a BLUE (b) LINES (-).
%
plot ( xlist, ylist, 'b-', 'LineWidth', 3 );
%
%  Allow us to add more plots to same picture.
%
hold on
%
%  Add BLACK (k) DASHED LINES (--) from (-2,0) to (3,0).
%
plot ( [ -5.0, 5.0], [0.0, 0.0], 'k--' );
%
%  We are done adding to our plot.
%
hold off
%
%  Add grid, title, labels.
%
grid on
title ( 'Example 2, 201 data points.', 'FontSize', 24 );
xlabel ( '<-- X -->' );
ylabel ( '<-- Y -->' );
%
%  Make x and y scale the same.
%
axis equal
%
%  Save a JPG copy of the plot.
%
print ( '-djpeg', 'example2.jpg' );