Plotting the 3D Heat Equation in 2D Slices

46 Views Asked by At

I am trying to plot the temperature distribution of a cake using the heat equation in 3D in MATLAB. The boundary conditions are
boundary conditions.

I am trying to plot the temperature distribution of a cake shaped as a rectangular prism on 2D slices. These slices are placed on the x-axis consecutively. (see below) enter image description here

How can I visualize these slices? Is it also possible to make an animation of the temperature change over time for one of the slices? Thanks.