Mel Matrix Row and Column as variable


Does anyone know if its possible to add a variable into the row or column indices?

like this…

int $num = 200;
matrix $myM[6][$num] = add lots of stuuff to the 6 rows and the variable columns in the matrix;


You have to define the size of the matrix in the declaration.

matrix $m[10][200];
int $b = 123;
$m[1][$b] = 3456;


Brilliant! Thank you so much:eek::slight_smile: