Example 3. Solve
Laplace's equation with the Neuman boundary condition over
a 9 by 9 grid with boundary conditions
Top: 180
Left: 80
Bottom:
= 0
Right: 0
Solution 3.
First set up the boundary values.
Next, solve it.
Plot the solution.
![[Graphics:../Images/EllipticPDEMod_gr_59.gif]](../Images/EllipticPDEMod_gr_59.gif)
To see the numerical values enter the command:
![[Graphics:../Images/EllipticPDEMod_gr_65.gif]](../Images/EllipticPDEMod_gr_65.gif)
We can make a contour plot of the solution. However, to get the orientation like the table and the 3D figure requires reversing the rows in the matrix.
![[Graphics:../Images/EllipticPDEMod_gr_67.gif]](../Images/EllipticPDEMod_gr_67.gif)
This problem has smoother contours.
(c) John H. Mathews 2004