Here some code that works similar at least you can see this way the defined array in the code as matrix
the values get then filled into the multidimensional array
Code:
var array[3][3];
var arrayInsert[9]={ 1,2,3,
5,0,2,
2,2,1};
void fillArray()
{
var i;
var yy=0;
var xx=0;
for (i=0; i<9; i++)
{
array[yy][xx]=arrayInsert[i];
xx++;
if(xx>=3) {xx=0;yy++;}
}
}