From help-octave-request at bevo dot che dot wisc dot edu Mon Jan 5 16:15:34 2004 Subject: Re: plotting to Postscript doesn't work? From: "John W. Eaton" To: Geraint Paul Bevan Cc: Bart Vandewoestyne , help-octave@bevo.che.wisc.edu Date: Mon, 5 Jan 2004 16:15:28 -0600 On 5-Jan-2004, Geraint Paul Bevan 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 -------------------------------------------------------------