Solution to 1-D Linear Convection equation in MATLAB using first-order discretization schemes and the effect of grid spacing on the stability of the solution
Objective: INTRODUCTION: In this challenge, we will solve the following 1D linear convection equation to observe the propagation of a square wave with time. `{partial u}/{partial t} + C {partial u}/{partial x} = 0` Here, `C` is the velocity of propagation. The above equation is discretized using first-order forward differencing…