# How can connect two point in plot graph?

12 visualizzazioni (ultimi 30 giorni)
x y il 6 Dic 2013
Commentato: sixwwwwww il 6 Dic 2013
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
##### 0 CommentiMostra -1 commenti meno recentiNascondi -1 commenti meno recenti

Accedi per commentare.

### Risposta accettata

sixwwwwww il 6 Dic 2013
yes. see:
x = [0, 1];
y = [0, 5];
plot(x, y, '*-'), xlim([-1 2]), ylim([-1 6])
##### 2 CommentiMostra 1 commento meno recenteNascondi 1 commento meno recente
sixwwwwww il 6 Dic 2013
you are welcome

Accedi per commentare.

### Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by