Code for finding extrapolated value when two point are given?

there are two point A (x1,y1)and B(x2,y2) given trying to extrapolate at third point c(x3,y3). I am knowing the value of A(x1,y1) and B(x2,y2), How can I compute the value of C(x3,y3).

回答(2 个)

You can use the MATLAB function interp1() to do extrapolation. Read
doc interp1
for details.
Be careful. Extrapolation is a tricky business.
interp1()
Or just use standard geometry... y = m*x + b, m = (y2-y1)/(x2-x1)

2 个评论

For extrapolation how can I write, I think this is for interpolation?
This formula will also do extrapolation.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Image Processing Toolbox 的更多信息

提问:

RS
2013-5-14

Community Treasure Hunt

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

Start Hunting!

Translated by