1
%MESHND: creation and nested dissection of regular 2D and 3D meshes.
3
% meshnd - creation and nested dissection of a regular 2D or 3D mesh.
4
% meshnd_quality - test the ordering quality computed by meshnd.
5
% meshsparse - convert a 2D or 3D mesh into a sparse matrix matrix.
6
% meshnd_example - example usage of meshnd and meshsparse.
8
% The outputs of the meshnd example and meshnd_quality are in meshd.png,
9
% meshnd_quality_out.txt, and meshnd_quality.png.
12
% % with no inputs or outputs, meshnd runs a demo:
15
% % create the sparse matrix for a 7-by-5-by-2 mesh:
16
% A = meshsparse (meshnd (7,5,2)) ;
18
% % create a 7-by-5-by-2 mesh and find the nested dissection ordering:
19
% [G p] = meshnd (7,5,2) ;
20
% A = meshsparse (G) ;
21
% subplot (1,2,1) ; spy (A) ;
22
% subplot (1,2,2) ; spy (A (p,p)) ;
25
% Copyright 2007, Timothy A. Davis, Univ. of Florida
26
% VERSION 1.1.0, Nov 1, 2007