% plot_MultiPathSinusoid - plot the output from the time-varying multi-path
%                          simulator in response to a sinusoid.

%% Initialization
ChannelParameters    = tux();       % COST model parameters
ChannelParameters.fd = 10;          % Doppler frequency

fs                   = 1e5;         % sampling rate
SigDur               = 1;           % duration of signal

%% generate input signal and simulate channel
tt         = 0:1/fs:SigDur;    % time axis
Sig        = ones( size(tt) ); % baseband-equivalent carrier

Received   =  SimulateCOSTChannel(Sig, ChannelParameters, fs);

%% plot
plot(tt, abs(Received(1:length(tt))) )
xlabel( 'Time (s)')
ylabel( 'Magnitude' )
grid

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