help-octave
[Top][All Lists]
Advanced

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

Re: Variable names


From: c.
Subject: Re: Variable names
Date: Thu, 19 Jun 2008 10:37:17 +0200


On 19/giu/08, at 07:23, Thomas Weber wrote:

On 18/06/08 16:49 -0700, asha g wrote:
I am trouble shooting my program and was wondering if the fact that I
have variables named vinf, minf etc were confusing the program. At one
pt when I ran it in Matlab I did get an error message saying warning:
division by zero even though the program does not have this.

That doesn't mean much, this can very well happen in one of the core (=
shipped with the product) functions. If the behaviour is repeatable,
disp() and keyboard() are your friends:

disp(i) in a "for i=..." loop will tell you where you are and keyboard()
can help you inspect your values.

        Thomas

also

>> debug_on_warning (1)

will tell Octave to stop at the location where
the division by zero has occurred as if you had
placed a "keyboard" command there

c.




reply via email to

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