Student Support Forum: 'Map a bidimensional function and interpolate' topicStudent Support Forum > General > "Map a bidimensional function and interpolate"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 Author Comment/Response David 10/25/12 10:55pm You need to wrap your output with "Flatten". ie test[x_,y_]:=x+y; TEST=Table[{{x,y},test[x,y]},{x,0,2},{y,0,2}]; In[2]:= Flatten[TEST, 1] Out[2]:= { { {0,0}, 0}, { {0,1}, 1}, { {0,2}, 2}, { {1,0}, 1}, { {1,1}, 2},{ {1,2}, 3}, { {2,0}, 2}, { {2,1}, 3}, { {2,2}, 4} } And when you apply this to Interpolation you get an InterpolatingFunction. With this example you do however get an error telling you that there aren't enough data points for the default interpolation order of 3. Attachment: screenshot 2012-10-25 at 10.52.17 PM.jpg, URL: ,

 Subject (listing for 'Map a bidimensional function and interpolate') Author Date Posted Map a bidimensional function and interpolate Javier 10/25/12 2:28pm Re: Map a bidimensional function and interpolate David 10/25/12 10:55pm Re: Re: Map a bidimensional function and interp... Javier 10/26/12 1:34pm
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic