%======================================
%= SineWave Construction Using MATLAB =
%======================================

Amplitude=2;                                    %Amplitude
Phase=0;                                        %Phase (Sine Wave)
Frequency=1;                                    %Frequency
AngularFrequency=Frequency * (2*pi);            %Angular Frequency
SamplingRate=200;                               %Sampling Rate
Duration=3;                                     %Signal Duration (Sec)
Time=0:1/SamplingRate:Duration;                 %Time

SineWave=Amplitude*sin(AngularFrequency*Time+Phase); %The Signal

figure(1);
plot(Time,SineWave);
title('A Sine Wave');
xlabel('Time (Sec)');
ylabel('Amplitude');
grid on