2
%EX3: create 2D and 3D meshes using mesh2d1, mesh2d2, mesh3d1, mesh3d2.
8
% Copyright 2006-2007, Timothy A. Davis.
9
% http://www.cise.ufl.edu/research/sparse
16
fprintf ('run times for each method, given n:\n') ;
35
fprintf ('%3d: %8.3f %8.3f %8.3f %8.3f\n', n, t1(n), t2(n), t3(n), t4(n)) ;
37
subplot (2,2,1) ; spy (A) ; title ('2D mesh, method 1') ;
38
subplot (2,2,2) ; spy (B) ; title ('2D mesh, method 2') ;
39
subplot (2,2,3) ; spy (C) ; title ('3D mesh, method 1') ;
40
subplot (2,2,4) ; spy (D) ; title ('3D mesh, method 2') ;