I calculated matrices which took a long calculation time and now I want to interpolate them to a function f(x,y) but I just found out that i forgot to add the coordinate data to the table which I need to add in advance now without re-calculating the actual matrices.
Here is a simplified problem which I try to tackle:
What I want:
mat = Table[{x, y, x^2 + y^2}, {x, 0, 10, 1}, {y, 0, 10, 1}];
What I have:
mat2 = Table[x^2 + y^2, {x, 0, 10, 1}, {y, 0, 10, 1}];
I created the coordinate vectors
xtab = Table[x, {x, 0, 10, 1}];
ytab = Table[y, {y, 0, 10, 1}];
but how can I smartly combine them component wise to receive the wanted matrix? I already got desperate trying.
tab = Table[{x, y}, {x, 0, 10, 1}, {y, 0, 10, 1}];
, and then join them? $\endgroup$