# tensor_grid_display

tensor_grid_display, a MATLAB code which can generate and display the points of a 1D/2D/3D tensor product grid formed by the same rule in each dimension, but allowing the order of points in each dimensio to vary.

For instance, it is legal to request a 3D grid using the Gauss-Legendre rule in each dimension, but with 3 points in X, 9 points in Y, and 5 points in Z.

### Usage:

tensor_grid_display ( m, n_1d, rule )
where
• m is the spatial dimension (1, 2 or 3);
• n_1d is a vector containing the order of the rule in each dimension. A rule with 3 points in X, 9 points in Y and 5 points in Z would specify [3,9,5];
• rule is a quoted string indicating the quadrature rule to be used.

The codes for quadrature rules are:

• 'CC', Clenshaw-Curtis,
• 'F1', Fejer Type 1,
• 'F2', Fejer Type 2,
• 'GL', Gauss-Legendre,
• 'GP', Gauss-Patterson, (orders 1, 3, 7, 15, 31, 63, 127, 255 or 511 only)
• 'HR', Hermite,
• 'JC', Jacobi,
• 'LG', Laguerre,
• 'NCC', Newton-Cotes Closed,
• 'NCO', Newton-Cotes Open,
• 'NCOH', Newton-Cotes Open Half.

### Languages:

tensor_grid_display is available in a MATLAB version.

### Related Data and Programs:

cc_display, a MATLAB code which displays points on various grids derived from the Clenshaw Curtis rule.

circle_grid_display, a MATLAB code which reads a matrix of integers, and draws a corresponding grid of circles filled with color.

gl_display, a MATLAB code which displays points on various grids derived from the Gauss-Legendre rule.

grid_display, a MATLAB code which reads a file of points on a grid or sparse grid, displays the grid and saves the image in a PNG file;

grids_display, a MATLAB code which reads two files of grids or sparse grids, displays the first with hollow blue dots, the second with red dots.

nested_sequence_display, a MATLAB code which displays a set of nested sequences.