Connecting points with lines
1 次查看(过去 30 天)
显示 更早的评论
Hi everbody
How can i draw a line between the points at the image? I can use curve fitting toolbox, but i should use a code.
Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157449/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157451/image.png)
3 个评论
回答(1 个)
Image Analyst
2016-10-28
What line? How about this arbitrary one?
line([100, 500], [0.1, -0.005], 'Color', 'r', 'LineWidth', 2);
Do you not like that one? Then what line would you like?
A polyfit() demo is attached, if you want to take a look at that.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Directed Graphs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!