How to get query point for a particular known interpolated value?

5 ビュー (過去 30 日間)
Lavnish Gupta
Lavnish Gupta 2018 年 6 月 4 日
回答済み: Stephen23 2018 年 6 月 4 日
I have a 1-D array. Say, x=[1 2 3 4 5 6]. Corresponding to these x values I have, v=[12 34 45 78 89 97]. I want the value of x for which v=25. How can I achieve that? I guess its something with interpolation, can anybody help me with that?

採用された回答

Stephen23
Stephen23 2018 年 6 月 4 日
>> interp1(v,x,25)
ans = 1.5909

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by