Making a 2 analog values/variables table and mapping that to steps of rotation.

Is there a way to make the following table of three values in Arduino environment?

  • First column: List steps of rotation of a stepper motor.
  • Second column: Sample input analog value periodically, say at each 10 steps of stepper rotation.
  • Third column: Sample another input value at the same interval.

When the table is populated (within pre-set range of stepper rotation or several rotations) add up or subtract the two analog values and have the stepper motor go to the highest/lowest value.
Thanks in advance for your suggestions.

Yes it is called a two dimensional array.