www.gusucode.com > pde 案例源码 matlab代码程序 > pde/PdeplotMeshPlotExample.m
%% Mesh Plot % Create a PDE model. Include the geometry of the built-in function % |lshapeg|. Mesh the geometry and plot it. model = createpde; geometryFromEdges(model,@lshapeg); generateMesh(model); pdeplot(model) %% % Display the node labels. pdeplot(model,'NodeLabels','on') %% % Use xlim and ylim to zoom in on particular nodes. xlim([-0.4,0.4]) ylim([-0.4,0.4]) %% % Display the element labels. pdeplot(model,'ElementLabels','on') xlim([-0.4,0.4]) ylim([-0.4,0.4])