How to extend a curve until x-axis and y-axis
8 次查看(过去 30 天)
显示 更早的评论
Hi guys! I've plotted the red curve through a set of data (.txt file of points):
How can I extend the red curve untile axes of cartesian plane ?
4 个评论
采纳的回答
WalterWhite
2020-1-15
It doesnt seem to happen with interpolation(interp1)...atleast for me. But i've come up with an alternative based on the geometry and i've explained the reason along the code. Hope this helps
3 个评论
WalterWhite
2020-1-15
It's basically the same concept for the other end. You just have to copy paste and change the values. But this is not an accurate result, mind you
更多回答(1 个)
Navya Seelam
2020-1-15
Hi,
You can use interp1 function to interpolate your plot till x=0. There are different methods the function adopts for interpolation. You can choose from these methods to achieve appropriate interpolation. For more details on interp1 go through the link below.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!