MATLAB_Heat_Equation_1D
Description and Help
MATLAB_Heat_Equation_1D is a graphical user interface (GUI) that plots solutions to the following one-dimensional heat equations:
![]() | (1) |
![]() | (2) |
![]() | (3) |
In addition, the GUI investigates continuous dependence.
To use the GUI, specify a diffusivity constant, a final time to plot solutions, a boundary codition, and an initial condition, before clicking the Solve Heat Equation button.
The initial conditions in the dropbox menu of the GUI are labeled as 0, 1, sine, cosine, exponential and step function. These correspond to
| u0(x) | = 0, | ||
| u0(x) | = 1, | ||
| u0(x) | sin (πx), | ||
| u0(x) | = cos (4πx) + 1, | ||
| u0(x) | = e-100x2 , | ||
| u0(x) | = , |
The movie will play twice before outputting a surface plot of the solution.
To explore continuous dependence using the GUI one must first solve the heat equation with a particular diffusivity constant and initial condition. Once a solution has been constructed, click the Perturb Parameters and Solve button. Pop-up boxes will appear to specify the perturbed model parameters and/or initial conditions. The GUI assumes the perturbed initial condition is of the form

Once completed, the GUI will display the norm difference between the original solution and the perturbed solution. Depending on your choice of norm(s), potentially several plots will appear on the same axis.