Code for finding extrapolated value when two point are given?

조회 수: 3 (최근 30일)
RS
RS 2013년 5월 14일
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개)

the cyclist
the cyclist 2013년 5월 14일
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 2013년 5월 14일
interp1()
Or just use standard geometry... y = m*x + b, m = (y2-y1)/(x2-x1)
  댓글 수: 2
RS
RS 2013년 5월 16일
For extrapolation how can I write, I think this is for interpolation?
Matt Kindig
Matt Kindig 2013년 5월 16일
This formula will also do extrapolation.

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

카테고리

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