Mel Matrix Row and Column as variable


#1

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;


#2

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


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


#3

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