%% trig_plot plots the trigonometric function:
%
a = -5.0;
b = 5.0;
x = linspace ( a, b, 101 );
y = trig ( x );

clf ( );
hold ( 'on' );
plot ( x, y, 'linewidth', 3 );
plot ( [a,b], [0,0], 'k-', 'linewidth', 3 );
hold ( 'off' );

grid ( 'on' );
xlabel ( '<-- x -->' );
ylabel ( '<-- f(x) -->' );
title ( 'Trig function = cos(x) - x' );

print ( '-dpng', 'trig.png' );
