Part 1: Develop a MATLAB script to model the one-dimensional diffusion of a chemical through a medium using the Finite Difference Method (FDM). Assume that the concentration is held constant at 10 AU at one side of the domain (x=0), and that the starting concentration is 0 AU everywhere else. Also assume that the concentration remains at 0 AU very far from this point (at x = L). Use 10 spatial elements (N= 10), D = 0.001, time step size dt = 0.1, and end the simulation at t = 10. Plot the concentration across the medium at the start (t = 0) and end (t = 10) of the simulation.

Fig: 1