Solving Wave Equation by numerical discretisation
Objective: clear all close all clc figure(1) %when dt = 1e-1 subplot(2,2,1) tic [x1,u1] = ls_fun_assignment(1e-1,'b'); t1 = toc; %when dt = 1e-2 subplot(2,2,2) tic [x2,u2] = ls_fun_assignment(1e-2,'r'); t2 = toc; %when dt = 1e-3 subplot(2,2,3) tic [x3,u3] = ls_fun_assignment(1e-3,'g'); t3 = toc; %when dt = 1e-4 subplot(2,2,4) tic…