Code for finding extrapolated value when two point are given?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
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.
0 件のコメント
Walter Roberson
2013 年 5 月 14 日
interp1()
Or just use standard geometry... y = m*x + b, m = (y2-y1)/(x2-x1)
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!