help-octave
[Top][All Lists]
Advanced

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

Re: Using debug_on_warning


From: Thomas Weber
Subject: Re: Using debug_on_warning
Date: Wed, 26 Feb 2014 08:09:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Feb 25, 2014 at 05:09:32PM +0100, Markus Appel wrote:
> This warning can be caused e.g. by printf("%s",5) when the argument is
> converted implicitly to string type. When I put only that command in a
> script file and execute it with debug_on_warning enabled, octave 3.8.0
> drops as expected into debug mode. You can send your function file for
> more information.

I found the issue by going through the code. 
Essentially, it is the following:

str = [];
sprintf("%s", str);

Now, with respect to 'my' code - this is not really my code. I am looking
at matlab2tikz and the code in question is executed as part of the acid
test shipped with it. The file is publically available at
https://raw.github.com/nschloe/matlab2tikz/master/src/matlab2tikz.m

The issue happens in the function drawPatch().

Thanks
        Thomas


reply via email to

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