**[P] matrix utility** -- List, rename, and drop matrices

__Syntax__

List matrix names

__mat__**rix** __d__**ir**

List contents of matrix

__mat__**rix** __l__**ist** *mname* [**,** __nob__**lank** __noha__**lf** __noh__**eader** __non__**ames** __f__**ormat(***%fmt***)**
__t__**itle(***string***)** **nodotz**]

Rename matrix

__mat__**rix** __ren__**ame** *oldname* *newname*

Drop matrix

__mat__**rix** **drop** { **_all** | *mnames* }

__Menu__

__matrix list__

**Data > Matrices, ado language > List contents of matrix**

__matrix rename__

**Data > Matrices, ado language > Rename matrix**

__matrix drop__

**Data > Matrices, ado language > Drop matrices**

__Description__

**matrix dir** lists the names of currently existing matrices. **matrix list**
lists the contents of a matrix. **matrix rename** changes the name of a
matrix. **matrix** **drop** eliminates a matrix.

__Options__

**noblank** suppresses printing a blank line before printing the matrix.
This is useful in programs.

**nohalf** specifies that, even if the matrix is symmetric, the full matrix
be printed. The default is to print only the lower triangle in such
cases.

**noheader** suppresses the display of the matrix name and dimension before
the matrix itself. This is useful in programs.

**nonames** suppresses the display of the bordering names around the matrix.

**format(***%fmt***)** specifies the format to be used to display the individual
elements of the matrix. The default is **format(%10.0g)**.

**title(***string***)** adds the specified title *string* to the header displayed
before the matrix itself. If **noheader** is specified, **title()** does
nothing because displaying the header is suppressed.

**nodotz** specifies that **.z** missing values be displayed as blanks.

__Examples__

**. mat b = (2, 5, 4\ 5, 8, 6\ 4, 6, 3)**
**. mat a = (1, 2 \ 2, 4)**
**. matrix dir**
**. matrix rename a z**
**. matrix dir**
**. matrix list b**
**. matrix list b, nohalf**
**. matrix drop b**
**. matrix dir**
**. matrix drop _all**
**. matrix dir**