My question is to combine a matrix of values with a matrix of 2D coordinates:
Coor = {{{a, b}, {c, d}}, {{u, v}, {s, t}}};
Value = {{1, 2}, {3, 4}};
I want to get
Combined = {{{a, b,1}, {c, d,2}}, {{u, v,3}, {s, t,4}}};
so I can use ListPlot3D
This is similar to another question here. I attempt to use this solution by doing this
MapThread[List, {matrix1, matrix}, 2]
But this gives me
{{{{a, b},1}, {{c, d},2}}...};
which has an extra bracket inside that I couldn't figure out how to remove...
How can I get the desired "Combined" list? Thanks!