[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40889] fzero ignores input option "OutputFcn"
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #40889] fzero ignores input option "OutputFcn" |
Date: |
Fri, 13 Dec 2013 16:22:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40889>
Summary: fzero ignores input option "OutputFcn"
Project: GNU Octave
Submitted by: None
Submitted on: Fri 13 Dec 2013 04:22:06 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Leo
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
The following two invocations of fzero produce the same result:
[f0,fval,info, output] = fzero( @(x)besselj(1,x) , [3 5])
[f0,fval,info, output] = fzero( @(x)besselj(1,x) , [3 5],
optimset("OutputFcn", @sin))
showing that fzero ignores the function handle passed for the "OutputFcn"
option (in the above the function "sin" is used only as an example; in real
uses a properly behaving function will be used).
The expected behaviour can be recovered by changing the line 308 of fzero as
follows:
from:
if (outfcn)
to:
if !isempty(outfcn)
Best regards,
Leo
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40889>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40889] fzero ignores input option "OutputFcn",
anonymous <=