Is this what you want?
If so, make x a vector, and not a row matrix:
x
x=[2, 4, 6, 8, 10, 12]#corresponding to each row