help with data table :s

hi,

i'm new to arduino and having trouble figuring out how to make a data table, i'm trying to make a table (16x16) to store pre-selected numbers ranging from 0 - 5, i have two analog sensors an i need them to choose a number/cell in the table depending on both sensors values.

example, (not 16x16 but you get the idea)

4 4 4 4 5 5 5 5 5 5 4 4 4 4 4 5 5 5 5 5 4 4 4 4 4 5 5 5 5 5 3 4 4 4 4 4 5 5 5 5 y 3 3 3 4 4 4 4 5 5 5 3 3 3 3 4 4 4 4 5 5 2 3 3 3 3 4 4 4 4 5 2 2 2 2 3 3 3 4 4 4 1 1 2 2 2 2 3 3 3 4 1 1 1 2 2 2 3 3 3 3

x

do i store this data in an multidimensional array? an how would i write an algorithm to turn the two sensor values (y and X) into numbers on the grid ? sorry if this is a noob question :s i've tried looking on google but cant find any info on this. thanks

all you had to do was Google 'Arduino 2d array' https://programmingelectronics.com/tutorial-24-multi-dimensional-arrays-aka-matrix-old-version/

.

do i store this data in an multidimensional array?

Beats storing it in a show box.

an how would i write an algorithm to turn the two sensor values (y and X) into numbers on the grid ?

   byte gridValue = gridArray[x][y];

i've tried looking on google but cant find any info on this.

Quit clicking the cute kitten and porn links. Stay on topic. You'll find things a lot quicker.

Sometimes it even helps to crack open a book. Don't have one? Get one.