20.4.1999
Start by pdetool-solution. Then do the assembly yourself using just linear basis functions. The next step would be to extend to quadratic.
function [newp,newe,newt]=qmesh(p,e,t); %QMESH Modify a pde triangular mesh to be used with quadratic basis functions % % [P,E,T]=qmesh(P,E,T) returns a triangular mesh with side midpoints % appended into the point matrix P. In the new Edge matrix E, the second % row contains midpoint indices and rows 3-8 contain rows 2-7 from the % old edge matrix. In the triangle matrix T, rows 4-6 contain midpoint % indices and row 7 contains the subdomain number (row 4 from the old % triangle matrix). % Input arguments P, E and T can be created with pdetool