% sine_200.m
% Plot sin(x) using 200 data values.
%
%  Set the data pairs.
%
xlist = linspace ( 0.0, 2.0 * pi, 200 );
ylist = sin ( xlist );
%
%  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 (0,0) to (2*pi,0).
%
plot ( [ 0.0, 2*pi], [0.0, 0.0], 'k--' );
%
%  We are done adding to our plot.
%
hold off
%
%  Add grid, title, labels.
%
grid on
title ( 'y=sin(x), 200 data points.', 'FontSize', 24 );
xlabel ( '<-- X -->' );
ylabel ( '<-- Y = SIN(X) -->' );
%
%  Make x and y scale the same.
%
axis equal
%
%  Save a JPG copy of the plot.
%
print ( '-djpeg', 'sine_200.jpg' );