% plot_SinusoidSubplot - subplot of two sinusoids

%% generate sinusoids
generateSinusoid;
yy = A * sin( 2*pi * f * tt + phi );

%% Plots
subplot(2,1,1)
plot(tt, xx )          % xy-plot 
xlabel( 'Time (s)' )   % labels for x and y axis
ylabel( 'Amplitude' )
title( 'x(t) = A cos(2\pi f t + \phi)')

subplot(2,1,2)
plot(tt, yy )          % xy-plot 
xlabel( 'Time (s)' )   % labels for x and y axis
ylabel( 'Amplitude' )
title( 'x(t) = A sin(2\pi f t + \phi)')

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