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

    %% Mesh Refinement
% Refine the mesh of the L-shaped membrane several times. Plot the mesh for
% the geometry of the L-shaped membrane.
[p,e,t] = initmesh('lshapeg','hmax',inf); 
subplot(2,2,1), pdemesh(p,e,t) 
[p,e,t] = refinemesh('lshapeg',p,e,t); 
subplot(2,2,2), pdemesh(p,e,t) 
[p,e,t] = refinemesh('lshapeg',p,e,t); 
subplot(2,2,3), pdemesh(p,e,t) 
[p,e,t] = refinemesh('lshapeg',p,e,t); 
subplot(2,2,4), pdemesh(p,e,t) 
subplot