Two line start at same point

6 vues (au cours des 30 derniers jours)
m
m le 12 Mar 2014
Réponse apportée : m le 12 Mar 2014
Hi all,
i'm newbie in matlab. My question is, i have x and y line with range from 0 to 5. i want to plot at thre coordinate. first(1,1), second(2,3) and third(3,2). how can i plot two line with the same starting point at (1,1). and both line is visible.
thank you.

Réponses (2)

Walter Roberson
Walter Roberson le 12 Mar 2014
plot([1 2], [1 3], 'r', [1 3], [1 2], 'g')

m
m le 12 Mar 2014
what if i want to set the x and y axis to let say, 0-10 and the first point is on the coordinate is at 1,1
thanks

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by