1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>The matrix Token </TITLE>
<META NAME="description" CONTENT="The matrix Token ">
<META NAME="keywords" CONTENT="rtic">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="rtic.css">
<LINK REL="next" HREF="node29.html">
<LINK REL="previous" HREF="node27.html">
<LINK REL="up" HREF="node21.html">
<LINK REL="next" HREF="node29.html">
</HEAD>
<BODY bgcolor="white">
<!--Navigation Panel-->
<A NAME="tex2html441"
HREF="node29.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html439"
HREF="node21.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html433"
HREF="node27.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html442"
HREF="node29.html">The slider_with_label Token</A>
<B> Up:</B> <A NAME="tex2html440"
HREF="node21.html">The Available Tokens</A>
<B> Previous:</B> <A NAME="tex2html434"
HREF="node27.html">The v_separator Token</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00327000000000000000"></A><A NAME="MATRIX"></A>
<BR>
The <TT>matrix</TT> Token
</H2>
<P>
The <TT>matrix</TT> token is used to read in a matrix from a regular
ASCII file containing the numerical inputs for the given matrix.
<P>
The usage for the <TT>matrix</TT> widget is as follows:
<P>
<BLOCKQUOTE>
<TT>matrix</TT> '<I>label</I>',<I>m</I>,<I>n</I>,'<I> filename</I>',<I>ID</I>
</BLOCKQUOTE>
<P>
where
<P>
<UL>
<LI><I>label</I>: a text label delimetered by single quotes, and
used to identify this in the user's parameter window,
<P>
</LI>
<LI><I>m</I>: matrix row dimension, integer,
<P>
</LI>
<LI><I>n</I>: matrix column dimension, integer,
<P>
</LI>
<LI><I>filename</I>: full path to the file that will be assigned to the
given matrix,
<P>
</LI>
<LI><I>ID</I>: a unique identifier (integer) that identifies the
given matrix to the user's controller defined in the file <TT>user_controller.c</TT>.
<P>
</LI>
</UL>
<P>
Example:
<P>
<BLOCKQUOTE>
<TT>matrix</TT> 'A',3,3,'/home/jonny/A.mat',0
</BLOCKQUOTE>
<P>
assigns the contents of the file ``/home/jonny/A.mat'' to
the matrix ``A'', of dimensions <IMG
WIDTH="36" HEIGHT="20" ALIGN="BOTTOM" BORDER="0"
SRC="img44.png"
ALT="$3x3$">. The ID for the ``A''
matrix is <IMG
WIDTH="16" HEIGHT="20" ALIGN="BOTTOM" BORDER="0"
SRC="img45.png"
ALT="$0$">. The ``A.mat'' file looks like:
<P>
<BR>
<DIV ALIGN="RIGHT">
<!-- MATH
\begin{equation}
\begin{array}{rrr}
0& 1& 0\\
0& 0& 1\\
-2& -1& 3
\end{array}
\end{equation}
-->
<TABLE WIDTH="100%" ALIGN="CENTER">
<TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><IMG
WIDTH="326" HEIGHT="76" BORDER="0"
SRC="img46.png"
ALT="\begin{displaymath}
\begin{array}{rrr}
0& 1& 0\\
0& 0& 1\\
-2& -1& 3
\end{array} \nonumber
\end{displaymath}"></TD>
<TD WIDTH=10 ALIGN="RIGHT">
</TD></TR>
</TABLE>
<BR CLEAR="ALL"></DIV><P></P>
<P>
<BR><HR>
<ADDRESS>
Michael Barabanov
2001-06-19
</ADDRESS>
</BODY>
</HTML>
|