%===========================
%=== The Cosine Function ===
%===========================
clear
clc

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

CosineF = Amplitude * cos(AngularFrequency*Time + Phase);

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