How can connect two point in plot graph?

5 次查看(过去 30 天)
Hy,
I would like to know how can I connect two point in cordinate table, how can I ploting only lines?
Is this possible take two point (without range like this x = 1:0.1:1000) ...only just take two point like (15,5) and matlab make line in plot graph?
something this I want to : http://i.imgur.com/dRy2sKv.png

采纳的回答

sixwwwwww
sixwwwwww 2013-12-6
yes. see:
x = [0, 1];
y = [0, 5];
plot(x, y, '*-'), xlim([-1 2]), ylim([-1 6])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by