% Heat equation in 1D
% The PDE for 1D heat equation is Ut=Uxx, 0=<t,0=<x=<L
% Initial condions are U(0,t)=a(t);U(L,t)=b(t)
% the boundary condition is U(x,0)=g(x)
% u(t,x) is the solution matrix.
% the finite linear heat equation is solved is....
%alpha=dx/dt^2. dx,dt are finite division for x and t.
% t is columnwise
%x is rowwise dealt in this code
%suggestions and discussions are welcome.
RMS Danaraj (2021). Heat Equation 1D Finite Difference solution (https://www.mathworks.com/matlabcentral/fileexchange/75266-heat-equation-1d-finite-difference-solution), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!