%==================================================
%===== The Sine and The Exponential Functions =====
%==================================================

clear
clc

Amplitude = 1;
Frequency = 1;
Phase = 0;
Duration = 5;
SamplingRate = 100;
DecayParameter = 1;
AngularFrequency = 2*pi*Frequency;
Time = 0:1/SamplingRate:Duration;

SineF = Amplitude * sin(AngularFrequency*Time + Phase);

IncExpFunction = exp(DecayParameter*Time);

SineFIncExp = SineF ./ IncExpFunction;

figure(1);
plot(Time,SineFIncExp);
title('The Sine and The Exponential Functions');
xlabel('Time (Sec)');
ylabel('Amplitude (V)');
grid on