Is it possible to get a relationship between two vectors in matlab?
1 次查看(过去 30 天)
显示 更早的评论
I have 2 vectors x and y. I need to represent y as a function of x. Is it possible to do so in matlab?
0 个评论
回答(1 个)
David Sanchez
2013-7-15
plot(x,y)
will do the trick, as long as x and y are of the same length.
1 个评论
David Sanchez
2013-7-15
and if you want to get the relationship, use the curve fitting tool by typing
cftool
A user interface will be prompted where you can approximate your data to the shape of your liking.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!