write a matlabe code for Perform two iterations to solve the following one dimensional heat equation using FTCS and Crank−Nicolson scheme, with ∆x = 1 4 . ∂u ∂t = ∂ 2u ∂x2 , 0 < x < 2, t > 0. u(0, t) = 0, ux(2, t) = 1, t ≥ 0 and u(x, 0) = x, 0 ≤ x ≤ 2.
Comments
Leave a comment