Language Reference

TYPE Function

determines the type of a matrix

TYPE( matrix)

where matrix is a numeric or character matrix or literal.

The TYPE function returns a single character value; it is N if the type of the matrix is numeric; it is C if the type of the matrix is character; it is U if the matrix does not have a value. Examples of valid statements follow.

The following statements set R to C:

  
    a={tom}; 
    r=type(a);
 
The following statements set R to U:
  
    free a; 
    r=type(a);
 
The following statements set R to N:
  
    a={1 2 3}; 
    r=type(a);
 

Previous Page | Next Page | Top of Page