clear
clc

Amplitude1=1;
Amplitude2=1;

WaveNumber1=4;
WaveNumber2=5;

X=-10:1/100:10;

Wave1=Amplitude1*sin(WaveNumber1.*X);
Wave2=Amplitude2*sin(WaveNumber2.*X);

figure(1);
subplot(2,1,1),plot(X,Wave1,X,Wave2);
title('Waves to Superimposed (WaveNumbers: k1=4, k2=5)');
xlabel('Distance');
ylabel('Amplitude');
grid on

SuperimposedWaves=Wave1+Wave2;

subplot(2,1,2),plot(X,SuperimposedWaves);
title('The Superimposed Waves');
xlabel('Distance');
ylabel('Amplitude');
grid on
