help-octave
[Top][All Lists]
Advanced

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

Re: Line plotting not working in an Octave 3.8.1 script


From: Dmitri A. Sergatskov
Subject: Re: Line plotting not working in an Octave 3.8.1 script
Date: Wed, 11 Jun 2014 13:11:59 -0500




On Wed, Jun 11, 2014 at 9:17 AM, Fausto Arinos de A. Barbuto <address@hidden> wrote:

Hi,

I wrote a script containing a plot() command aimed at plotting two
curves on the same chart.  When the command has the following form:

plot(arg,t,'bd',arg, sqrt(arg)*besselj(1, 2.0*sqrt(2.0*arg)),'r-');


​BTW -- this may or may not be related to the problem, but "arg" is a function in octave.
By defining a variable with the same name you effectively kill this function.
This is an unfortunate feature of matlab/octave.
It is quite possible that your script uses some other variables that mask out some other
functions which in turn are used by plot() function. With those functions being unavailable to plot(),
it will not work as intended.

Sincerely,

Dmitri.
--

 

reply via email to

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