help-octave
[Top][All Lists]
Advanced

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

Re: Using debug_on_warning


From: Jose
Subject: Re: Using debug_on_warning
Date: Wed, 26 Feb 2014 10:34:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 26/02/14 09:09, Thomas Weber wrote:
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);

Can you change it to 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().

Maybe you can send them a patch.

BR,
J.



reply via email to

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