octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

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