# Matrices in RMC

**URL:** <https://forum.deltamotion.com/t/matrices-in-rmc/837>\
**Category:** RMCTools\
**Created:** [December 23, 2020, 1:43am UTC](https://forum.deltamotion.com/t/matrices-in-rmc/837 "2020-12-23T01:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharath](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@Sharath](https://forum.deltamotion.com/u/Sharath)\
**Post date:** [December 23, 2020, 1:43am UTC](https://forum.deltamotion.com/t/matrices-in-rmc/837/1 "2020-12-23T01:43:35Z")

</div>

Hello everyone,

I have a couple of questions:

1. Is there a way to define matrices in RMC tools user programs?

2. Suppose I have two arrays, array1 and array2, of size 4 x 1 size. I am interested in computing  
array1[0]\*array2[0] + array1[1]\*array2[1] + … etc. Manually defining this multiplication is hard for large arrays, say of size above 20. Is there any efficient way?

---

<div class="post-metadata">

**Author:** ![sobanion](https://forum.deltamotion.com/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@sobanion](https://forum.deltamotion.com/u/sobanion)\
**Post date:** [December 23, 2020, 7:04pm UTC](https://forum.deltamotion.com/t/matrices-in-rmc/837/2 "2020-12-23T19:04:00Z")

</div>

Hi Sharath,

1. Matrices are not currently supported in RMC Tools.

2. One way to multiply and add your array variables would be to use the variable table and a user program. To start, the variable table can be used to define your arrays and necessary variables.

![image](https://forum.deltamotion.com/uploads/default/original/1X/fedabf16b6917d6d07980427ddb69e503f02f073.png)

These arrays can then be used in a user program to perform the necessary calculations. The variable _ArrayTot_ is used to store the final value.

 ![image](https://forum.deltamotion.com/uploads/default/original/1X/f18f3bd6af41eebc2d0eec7f1aa560280887d590.png)

Further information on how to define arrays can be found in RMCTools help here: [Arrays](https://deltamotion.com/support/webhelp/rmctools/#t=Programming%2FExpressions%2FExpressions_Arrays.htm&rhsearch=variable_table&rhsyns=%20).
