[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42050] fplot does not work with anomynous fun
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle |
Date: |
Fri, 04 Apr 2014 19:58:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Firefox/17.0 Iceweasel/17.0.9 |
Follow-up Comment #7, bug #42050 (project octave):
Jordi, I don't think arrayfun is the right thing to do.
First, it will be slower (much so for functions that require many evaluations
to make good looking plots) and the expectation for Matlab is that the
function accepts an array argument. I think we should just give an error if
the result from the function does not have the expected size. Note that
"expected size" is not simply a vector of the same size as the input. It may
also be a matrix with the same number of rows as the number of elements in the
input array.
Second, I think using arrayfun may actually break compatibility. Please take
a look at what the Matlab docs say about how the function that is passed to
fplot is supposed to behave.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42050>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, anonymous, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, Jordi Gutiérrez Hermoso, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, Jordi Gutiérrez Hermoso, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, John W. Eaton, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, John W. Eaton, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, John W. Eaton, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, Mike Miller, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, Jordi Gutiérrez Hermoso, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle,
John W. Eaton <=
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, anonymous, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, John W. Eaton, 2014/04/04
- [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle, Peter Chang, 2014/04/04