NESTED_SEQUENCE_DISPLAY
Display a Nested Set of Sequences


NESTED_SEQUENCE_DISPLAY is a MATLAB program which displays a set of sequences, as lines of X values, "stacked up" in the Y direction. For cases where sequences share a value, a red vertical line is drawn to highlight this.

The purpose of the plot is to emphasize the structure of a nested sequence, although it is not actually necessary for the sequences to be related in any way.

The kind of plot we are thinking of though, might look something like this:

    Sequence 4: 1    3 4  5  6     8
                |    |    |        |
    Sequence 3: 1 2  |    5     7  |
                |    |          |  |
    Sequence 2: 1    3          7  |
                |               |  |
    Sequence 1: 1               7  8
      

For example, the program could be used to show the nesting of the family of Clenshaw Curtis points, when choosing orders 1, 3, 5, 9, 17, 33, 65, ...

Usage:

nested_sequence_display ()
invokes the program. It then engages in a dialog with the user, who is asked to enter, one by one, the names of files containing the sequences. When there are no more files to enter, the user should enter 'RETURN'. At that point, the plot will be drawn.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

GRIDLINES, a MATLAB library which gives the user more control over drawing gridlines on a graph than the builtin "grid on" command.

SEQUENCE_STREAK_DISPLAY, a MATLAB program which reads a file containing a sequence, and draws a "streak" plot in which, as each value joins the sequence, it starts a streak on the plot.

TABLE, a format which is used for the files containing the sequences.

TENSOR_GRID_DISPLAY, a MATLAB program which can display the grid points of a tensor product rule used for interpolation or quadrature, in 1D, 2D or 3D.

Source Code:

Examples and Tests:

CC is a set of files containing Clenshaw Curtis rules, with an "exponential" growth rule.

GL is a set of files containing Gauss Legendre abscissas, with an "exponential" growth rule.

NCO is a set of files containing Newton Cotes Open abscissas, with a "linear" growth rule.

SCC is a set of files containing Clenshaw Curtis rules, with an "slow exponential" growth rule.

You can go up one level to the MATLAB source codes.


Last revised on 04 May 2010.