Assuming you have already solved the discretised PDE equation for temperature using Jacobi solver with implicit Euler time integration and central differencing for space, you can plot the temperature contour as follows:
main.m466 chars14 lines
The contourf
function in MATLAB is used to create filled contour plots of 2D scalar data. You can vary the number of contour levels by setting the 'LevelList'
parameter of the contourf
function.
Note that you need to replace the ...
with the code that computes the temperature matrix at the current time step using the Jacobi solver with implicit Euler time integration and central differencing for space.
gistlibby LogSnag