Next: The slider_with_label Token
Up: The Available Tokens
Previous: The v_separator Token
The matrix Token
The matrix token is used to read in a matrix from a regular
ASCII file containing the numerical inputs for the given matrix.
The usage for the matrix widget is as follows:
matrix 'label',m,n,' filename',ID
where
- label: a text label delimetered by single quotes, and
used to identify this in the user's parameter window,
- m: matrix row dimension, integer,
- n: matrix column dimension, integer,
- filename: full path to the file that will be assigned to the
given matrix,
- ID: a unique identifier (integer) that identifies the
given matrix to the user's controller defined in the file user_controller.c.
Example:
matrix 'A',3,3,'/home/jonny/A.mat',0
assigns the contents of the file ``/home/jonny/A.mat'' to
the matrix ``A'', of dimensions
. The ID for the ``A''
matrix is
. The ``A.mat'' file looks like:
Michael Barabanov
2001-06-19