Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the

Question:

Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the diffusion equationat ac 2

subject to an initial condition c(x, 0) = 1 and boundary conditions c(0, t) = 1 and c(1, t) = 0. Your program should automatically plot the solution at the times t = 0.0005, 0.005, 0.02, 0.05, 0.1, and 0.5.

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: