gistlib
other matlab categories
explicit-time-marching code snippets in matlab
for n = 2:nt for i = 2:nx % finite difference scheme (explicit time marching) t(i, n+1) = t(i, n) + alpha * dt / dx^2 * (t(i+1, n) - 2 * t(i, n) + t(i-1, n)); end in matlab
gistlib
by LogSnag