transpose the matrix of coordinates (exercise: generate the matrix of coordinates so we don't have to transpose it after the fact)