how can i get extra data on graph

How can I extra data from plot graph? As i have data x axis= 10,12,14,16,18 and their corresponding value on y axis= 0.6,0.9,1,0.2,1.28. Now how can I get y axis value for x axis value 20?

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 5 月 2 日

0 投票

You can use interp1 function
x=[10,12,14,16,18]
y=[0.6,0.9,1,0.2,1.28]
xi=20
yi=interp1(x,y,xi,'linear','extrap')

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by