www.gusucode.com > pde 案例源码 matlab代码程序 > pde/SurfacePlotOfTheSolutionExample.m

    %% Surface Plot of The Solution
% Surface plot of the solution to the equation $- \Delta u = 1$ over the
% geometry defined by the L-shaped membrane. Use Dirichlet boundary
% conditions $u = 0$ on $\partial \Omega$.
[p,e,t] = initmesh('lshapeg'); 
[p,e,t] = refinemesh('lshapeg',p,e,t); 
u = assempde('lshapeb',p,e,t,1,0,1); 
pdesurf(p,t,u)