1d scattered data interpolation

6 ビュー (過去 30 日間)
James van Viersen
James van Viersen 2012 年 11 月 6 日
Hey everybody,
Matlab is becoming my arch enemy and I need some brave soldier to help me with my next battle, I have the following data:
x=[23 312 6546] y=[3 43 342]
So I can make a scattered 'graph' of points (x,y)
Now I want to linearly interpolate for example in the point, say (6,*) how can I do this? I used already 'griddedInterpolant' and other options!
Thank you very much in advance,
James
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 11 月 6 日
6 is not within your range of x values, so you cannot interpolate to there; you would have to extrapolate.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2012 年 11 月 6 日
interp1(x, y, 6)

その他の回答 (1 件)

James van Viersen
James van Viersen 2012 年 11 月 6 日
Thanks Roberson I know I can do for example interp1(x,y,43)!
Much appreciated,
James

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by