i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
1 次查看(过去 30 天)
显示 更早的评论
i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
0 个评论
采纳的回答
Azzi Abdelmalek
2012-11-29
编辑:Azzi Abdelmalek
2012-11-29
x=[1 6 8 9]
y=[3 6 9 14]
x0=4
y0=interp1(x,y,x0)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!