% plot_Sinusoid - plot the sinusoid produced by generateSinusoid

%% generate sinusoid
generateSinusoid;

%% Plot
plot(tt, xx, 'r')      % xy-plot, specify red line
xlabel( 'Time (s)' )   % labels for x and y axis
ylabel( 'Amplitude' )
title( 'x(t) = A cos(2\pi f t + \phi)')
grid                   % create a grid 
axis([0 10e-3 -4 4])   % tweak the range for the axes

%% Store name of script for automated figure generation
ScriptName = mfilename;