Linear Convection
Objective: Matlab code for the 1D Linear Convection equation `(du)/(dt) + c*(du)/(dx) = 0` Assumption: Numerical solution to the wave equation 1. Assume that the domain length is L = 1m 2. The initial velocity profile is a step function. It is equal to 2m/s between x= 0.1 and 0.3 and 1m/s everywhere else 3. Use first order forward…