I need to use the interpolation function on some data so I can integrate it. I have an array with 1400 subsets and there are 1400 elements in each subset: { {1} {2}....{1400}}
(Sorry, I don't know any of the right terminology for arrays). Each element represents a z value of a graph.
To make it simpler to explain I'll use a short version of my array:
{{1,2,3,4,5} , {5,6,7,8,9} , {9,10,11,12,13}}
The first element is the z value for coordinates (1,1), the second element is at (1,2) the third at (1,3) and so on. The first element of the second group is at (2,1), the second is at (2,2) and so on. Somehow, I need to create something of the form
{{{x1,y1},z1}, {{x2,y2},z2}...}
I have absolutely no idea how to go about it. So for my example array, I'd want the code to generate:
{{{1,1},1}, {{1,2},2}, {{1,3},3}, ...{{3,5},13}}
which the interpolation function would then work on. Any help or suggestions would be hugely appreciated, thanks!