[Top][All Lists]

[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 (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:
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.


José Luis García Pallero
address@hidden <mailto:address@hidden>
/ / \
Use Debian GNU/Linux and enjoy!

Help-octave mailing list

reply via email to

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