Code for finding extrapolated value when two point are given?

1 visualización (últimos 30 días)
RS
RS el 14 de Mayo de 2013
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).

Respuestas (2)

the cyclist
the cyclist el 14 de Mayo de 2013
You can use the MATLAB function interp1() to do extrapolation. Read
doc interp1
for details.
Be careful. Extrapolation is a tricky business.

Walter Roberson
Walter Roberson el 14 de Mayo de 2013
interp1()
Or just use standard geometry... y = m*x + b, m = (y2-y1)/(x2-x1)
  2 comentarios
RS
RS el 16 de Mayo de 2013
For extrapolation how can I write, I think this is for interpolation?
Matt Kindig
Matt Kindig el 16 de Mayo de 2013
This formula will also do extrapolation.

Iniciar sesión para comentar.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by