Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Code for finding extrapolated value when two point are given?

Asked by S

S (view profile)

on 14 May 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).

0 Comments

S

S (view profile)

Products

No products are associated with this question.

2 Answers

Answer by the cyclist

the cyclist (view profile)

on 14 May 2013

You can use the MATLAB function interp1() to do extrapolation. Read

doc interp1

for details.

Be careful. Extrapolation is a tricky business.

0 Comments

the cyclist

the cyclist (view profile)

Answer by Walter Roberson

Walter Roberson (view profile)

on 14 May 2013

interp1()

Or just use standard geometry... y = m*x + b, m = (y2-y1)/(x2-x1)

2 Comments

S

S (view profile)

on 16 May 2013

For extrapolation how can I write, I think this is for interpolation?

Matt Kindig

Matt Kindig (view profile)

on 16 May 2013

This formula will also do extrapolation.

Walter Roberson

Walter Roberson (view profile)

Contact us