Interpolation within a data table

조회 수: 6 (최근 30일)
am
am 2013년 10월 10일
편집: am 2013년 10월 12일
I have a 12 X 12 table of Z-values, which are found against variable P(1:1:12) and X(25:25:300) as shown in table.I want to get the value of "Z" @ P=10.5 & X=115 via interpolation. your help is appreciated.
  댓글 수: 6
Image Analyst
Image Analyst 2013년 10월 12일
편집: Image Analyst 2013년 10월 12일
Something is still not correct, despite your claim to have edited it to fix in. You say that the first column is x and is 100:25:300. Yet it seems to be 25:25:300 instead, since the numbers start at 25, not 100. Also the table is 13 columns if the first columns is X and there are 12 columns in addition to that. And if the first row is P and there are 12 rows in addition to that, then there are 13 rows, not 12. So is X and P actually columns/rows in the table as you said? Or are they separate column/row vectors and not part of the 12x12 table?
am
am 2013년 10월 12일
Pardon my ignorance, actually this is some experimental data & yes; X=(25:25:300) and P=1:1:12. The Z values are found against these two variables which is 12x12 table of Z values. So you can say X & P are separate column/row vectors (reference values for Z).

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2013년 10월 12일
Why not just use bilinear interpolation: http://en.wikipedia.org/wiki/Bilinear_interpolation. It's easy, intuitive, and straightforward.
  댓글 수: 1
am
am 2013년 10월 12일
I'll give it a try and let you know!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by