%=============================
%===== The Sine Function =====
%=============================

clear
clc

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

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

figure(1);
plot(Time,SineF);
title('The Sine Function');
xlabel('Time (Sec)');
ylabel('Amplitude (V)');
grid on