You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>ICAM</strong> <strong>Virtual</strong> <strong>Machine</strong> ® <strong>Virtual</strong> <strong>Machine</strong> Reference, Model Customization<br />
Simulation Macro Functions, Matrix Functions<br />
4.4.5.6 Matrix Functions<br />
$FMX Matrix creation<br />
$FMXINV Matrix inversion<br />
$FMXMULT Matrix multiplication<br />
$FMXTRFP Point transformation by matrix<br />
$FMXTRFV Vector transformation by matrix<br />
$FMXTRSP Matrix transposition<br />
Matrix functions work with sequences of length 12 that define the APT standard rotation and<br />
translation components of a matrix. For example:<br />
a1,a2,a3,a4<br />
a5,a6,a7,a8,<br />
a9,a10,a11,a12<br />
Matrix functions can also work with square matrices of any dimension, defined as a series of<br />
numbers that represent a matrix organized in row-column order. For example:<br />
a1,a2,a3<br />
a4,a5,a6<br />
a7,a8,a9<br />
Matrix functions that return a matrix, vector or point sequence, do so by returning a sequence<br />
with the same length as that of the input matrix, vector or point sequence.<br />
Matrices can be constructed using the $FSEQ function or the { } sequence operators. For<br />
example, the following are equivalent:<br />
M1=$FSEQ(1,0,0,0,0,1,0,0,0,0,1,0)<br />
M1={1,0,0,0,0,1,0,0,0,0,1,0}<br />
It is important to note that matrices are sequences and not arrays. Matrix functions do not work<br />
with arrays.<br />
The $FMX Function<br />
result=$FMX(…)<br />
Returns: Sequence<br />
This function returns a 12-element matrix sequence as defined by the standard CAM-<br />
POST post-processor command syntax listed below:<br />
[INVERS, ]<br />
�<br />
0:<br />
n<br />
�<br />
� �XYROT<br />
� �<br />
�[<br />
x,<br />
y [, z ]] �,<br />
�YZROT<br />
�,<br />
angle �<br />
�<br />
� � � �<br />
� �ZXROT<br />
� �<br />
�MSYS[,<br />
LAST ]<br />
�<br />
�<br />
�a1<br />
,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a<br />
12<br />
�<br />
�<br />
�<br />
�<br />
�<br />
�<br />
�<br />
�<br />
162 <strong>ICAM</strong> Technologies Corporation – Proprietary