[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58280] cellfun with "ErrorHandler"
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #58280] cellfun with "ErrorHandler" |
Date: |
Thu, 30 Apr 2020 12:56:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0 |
URL:
<https://savannah.gnu.org/bugs/?58280>
Summary: cellfun with "ErrorHandler"
Project: GNU Octave
Submitted by: muhali
Submitted on: Thu 30 Apr 2020 09:56:33 AM PDT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 5.1.0
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
>From the cellfun help:
function y = foo (s, x), y = NaN; endfunction
cellfun ("factorial", {-1,2}, "ErrorHandler", @foo)
That function returns (as documented)
ans =
NaN 2
But when I add one more (incorrect) input
cellfun ("factorial", {-1,2,-1}, "ErrorHandler", @foo)
it throws an extra error:
error: factorial: all N must be real non-negative integers
ans =
NaN 2 NaN
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58280>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58280] cellfun with "ErrorHandler",
Muhali <=