help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting a line


From: Doug Stewart
Subject: Re: Plotting a line
Date: Mon, 19 Feb 2007 08:34:57 -0500
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

The plot command is trying to calculate a range for the x axis from your data. and since your x values are the same it calculates a range of 0.

You can set the range with axis





José Luis García Pallero wrote:
Hi,
If i want to plot a line between two points I use the command plot([x1,x2],[y1,y1]). If the points are, for example, x1=1, y1=1 and x2=2, y2=2, the line is plotted ok. But if the points are x1=1, y1=2 and x2=1, y2=1 (vertical line) a warning appears: empty x range [1:1], adjusting to [ 0.99:1.01]
What is the problem. Exists any command to plot a line between two points.

Thanks

--
*****************************************
José Luis García Pallero
address@hidden <mailto:address@hidden>
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************
------------------------------------------------------------------------

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]