help-octave
[Top][All Lists]
Advanced

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

Re: Line


From: James Sherman Jr.
Subject: Re: Line
Date: Wed, 25 Nov 2009 12:24:34 -0500

I don't have octave right this moment to check what the result is, but plot expects (as far as I know) the x and y vectors to be of the same length, so if you want the line you describe, you could do
plot(X, 3*ones(1,10))

Also, octave is case-sensitive, so the variables X and x are different.  Are you sure you put it into octave like you wrote it?

On Wed, Nov 25, 2009 at 12:03 PM, Renato S. Yamane <address@hidden> wrote:
X = 1:10
plot(x, 3)

Why the result is not a line from 1 to 10 (x-axis) and constant in
y-axis (3)?

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


reply via email to

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