next up previous
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

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 $3x3$. The ID for the ``A'' matrix is $0$. The ``A.mat'' file looks like:


\begin{displaymath}
\begin{array}{rrr}
0& 1& 0\\
0& 0& 1\\
-2& -1& 3
\end{array} \nonumber
\end{displaymath}  



Michael Barabanov 2001-06-19