%====================================
% ===== Example of a Plane Wave =====
%====================================

clc
clear

SamplingRate=1000;
Time=-5:1/SamplingRate:5;
Amplitude=1;
Frequency=0.5;
AngularFrequency=2*pi*Frequency;
Phase=0;

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

figure(1);
plot(Time,SineWave), axis([-5 5 -2 2]);
title('Plane SineWave');
xlabel('Time');
ylabel('Amplitude');
grid on