Gistlib Logo

gistlib

other matlab categories

heat-equation code snippets in matlab

2d heat equation in matlab
set up coefficient matrix and rhs vector for a 2d unsteady heat conduction equation. implicit euler for time and backward differencing for space in matlab
solve heat conduction equation pde in matlab using implicit euler for time and central differencing for space in matlab
t(i, n+1) = t(i, n) + alpha * dt / dx^2 * (t(i+1, n) - 2 * t(i, n) + t(i-1, n)); in matlab

gistlibby LogSnag