NAME Function

NAME( arguments ) ;

The NAME function returns the names of the arguments in a column vector. The arguments parameter specifies the names of existing matrices.

In the following example, N is a character matrix that contains the character values 'A', 'B', and 'C':

Seq = 1:3; 
Const = -1;
N = name(Seq, Const);
do i = 1 to nrow(N);
   msg = "Values of Matrix " + N[i];
   x = value(N[i]);
   print x[label=msg];
end;

Figure 23.190 Matrix Names
Values of Matrix Seq
1 2 3

Values of Matrix
Const
-1

A primary use of the NAME function is in writing macros in which you want to use an argument for both its name and its value.