NAME
    matdim - matrix dimension

SYNOPSIS
    matdim(m)

TYPES
    m		matrix

    return	1, 2, 3, or 4

DESCRIPTION
    Returns the number of indices required to specify elements of the matrix.

EXAMPLE
    > mat A[3]; mat B[2,3]; mat C[1, 2:3, 4]; mat D[2, 3, 4, 5]
    > print matdim(A), matdim(B), matdim(C), matdim(D)
    1 2 3 4

LIMITS
    none

LIBRARY
    none

SEE ALSO
    XXX - fill in
