Linear Convection for varing time steps
Objective: Numerical solution to wave equation varying time steps. Following is the function for varying time steps. function [x,u,nt]=simple_linear_convection_timestep(dt,color,DisplayName,name) % Inputs for the linear convention L=1; c=1; t_end = 0.4; nt = (0.01:dt:t_end); n = 80; %calculation x = linspace(0,L,n);…