Solve the 1D linear convective equation with the help of matlab
Objective: The one dimensional linear convective equation problem is `du/dt + c*du/dx = 0` where c is the constant velocity of the above equation if we write the above equation in the node and time frame then it is wriiten as `(U2^(i+1) -U2^i)/dt = c*(U2^i -U1^i)/dx` here lefth hand velocity in the time frame is the forward…