SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

MATRIX DELETE ROW

Name:
    MATRIX DELETE ROW (LET)
Type:
    Let Subcommand
Purpose:
    Delete a row from an existing matrix.
Description:
    It is sometimes convenient to delete an observaton (i.e., a row) to an already existing data matrix. This command allows you to do that in a simple way.
Syntax:
    LET <mat2> = MATRIX DELETE ROW <mat1> <rowid>
    where <mat1> is the original data matrix;
                <rowid> is a number or parameter that specifies which row of the matrix is to be deleted;
    and where <mat2> is the resulting matrix.

    Note that <mat2> is typically the same as <mat1>

Examples:
    LET M = MATRIX DELETE ROW M X
Note:
    Matrices are created with either the READ MATRIX command or the MATRIX DEFINITION command. Enter HELP MATRIX DEFINITION and HELP READ MATRIX for details.
Default:
    None
Synonyms:
    None
Related Commands:
    READ MATRIX = Read a matrix.
    MATRIX COLUMN DIMENSION = Dimension maximum number of columns for Dataplot matrices.
    MATRIX ADD ROW = Add a row to a matrix.
    MATRIX ROW = Copy a row of a matrix to a column.
Applications:
    Multivariate Analysis
Implementation Date:
    1998/8
Program:
    READ MATRIX M
    1 2 3
    4 5 6
    7 8 9
    END OF DATA
    LET M = MATRIX DELETE ROW M 2
    PRINT M

Date created: 6/5/2001
Last updated: 4/4/2003
Please email comments on this WWW page to alan.heckert@nist.gov.