Plot a line, changing origin
4 次查看(过去 30 天)
显示 更早的评论
Hello,
I have 2 vectors containing x and y-coordinates. Now I want to plot these points and connect them to a line. How can I do this without starting from (0,0)? Actually the line always begins at (0,0) although this point is not content of the vectors!
0 个评论
采纳的回答
Simon
2013-9-16
Hi!
x = [1 2 3];
y = [2 4 9];
plot(x,y);
This doesn't start at (0,0). If you have problems please post your code.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Formatting and Annotation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!