how can i get extra data on graph
1 view (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Azzi Abdelmalek
on 2 May 2015
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 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!