www.gusucode.com > pde 案例源码 matlab代码程序 > pde/MeshPlotExample.m
%% [p,e,t] Mesh and Solution Plots % Plot the |p,e,t| mesh. Display the solution using 2-D and 3-D colored % plots. %% % Create the geometry, mesh, boundary conditions, PDE coefficients, and % solution. [p,e,t] = initmesh('lshapeg'); u = assempde('lshapeb',p,e,t,1,0,1); %% % Plot the mesh. pdeplot(p,e,t) %% % Plot the solution as a 2-D colored plot. pdeplot(p,e,t,'XYData',u) %% % Plot the solution as a 3-D colored plot. pdeplot(p,e,t,'XYData',u,'ZData',u)