Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 2D Table interpolation
Replies: 6   Last Post: Mar 11, 2014 4:43 PM

 Messages: [ Previous | Next ]
 Karan Patel Posts: 11 Registered: 3/9/14
2D Table interpolation
Posted: Mar 11, 2014 2:31 PM

Hi

My problem is quite simple...
I have a table containing data...let say.,

P1 = [1 2 3]
P2 = [1 4 16]
Table = [4 5 6; 7 8 9; 10 11 12]

so my row titles are [1 2 3]
ans coloum titles are [1 4 16]
and data are [4 5 6; 7 8 9; 10 11 12]

so my table looks like:
0 1 4 16
1 4 5 6
2 7 8 9
3 10 11 12

now I have a value from the data.(let say 8.)
now when i select 8, matlab should give me answer as [P1, P2] = [2, 4]
and similarly when I select 11 matlab should give me answer as [P1, P2] = [3, 4]

Is there any solution for this problem? Using interpolation reverse can possible. from 2,4; I can get 8 as a answer using command interp2. but I want the P1 & P2 as a answer.

Karan

Date Subject Author
3/11/14 Karan Patel
3/11/14 Derek Goring
3/11/14 Karan Patel
3/11/14 Karan Patel
3/11/14 Derek Goring
3/11/14 Karan Patel
3/11/14 Derek Goring