Language Reference

VALUE Function

assigns values by indirect reference

VALUE( char-scalar)

where char-scalar is a character scalar containing the name of a matrix.

The VALUE function expects a single character string argument containing the name of a matrix. It looks up the matrix and moves its value to the result. For example, the following statements find that the value of the argument b is a, then look up a and copy the value 1 2 3 to c:

  
    a={1 2 3}; 
    b="A"; 
    c=value(b);
 
Here is the resulting output:
  
  
                 C             1 row       3 cols    (numeric) 
  
                                 1         2         3
 

Previous Page | Next Page | Top of Page