help-octave
[Top][All Lists]
Advanced

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

Re: plotting to Postscript doesn't work?


From: John W. Eaton
Subject: Re: plotting to Postscript doesn't work?
Date: Mon, 5 Jan 2004 16:15:28 -0600

On  5-Jan-2004, Geraint Paul Bevan <address@hidden> wrote:

| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
| 
| Bart Vandewoestyne wrote:
| 
| |> octave:1> plot (sin (0:10))
| |
| |
| | Hmm... first of all, does the above line really work for you?  I get:
| |
| | octave:1> plot (sin (0:10))
| | error: octave_base_value::array_value(): wrong type argument `range'
| | error: evaluating argument list element number 1
| |
| 
| It works in Octave 2.1.50. However, for version 2.1.52 you have to
| enclose the range in square brackets: plot (sin ([0:10]))

The [] forces a conversion from range to matrix.  That the conversion
does not happen automatically is a bug, but it is fixed in CVS.

BTW, the recommended version is 2.1.50, so if you are new to Octave,
you might want to use that instead of 2.1.52.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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