Linear Convection for varing grid points
Objective: Numerical Solution to the wave equation. Below is the function for the plot % function for numerical solution function out=simple_linear_convection(n,h) %clear all %close all %clc % Inputs for the linear convention L=1; c=1; dt =1e-2; t_end = 0.4; nt = (0.01:dt:t_end); %n =20; %calculation x = linspace(0,L,n); dx…