Question: Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the diffusion equation subject to an initial condition c(x,
Write a MATLAB program that uses the method of lines, RK4, and finite differences to solve the diffusion equation
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.
at ac 2
Step by Step Solution
3.50 Rating (157 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
