|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #42050] fplot does not work with anomynous function handle |
Date: | Fri, 04 Apr 2014 17:08:15 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Follow-up Comment #5, bug #42050 (project octave): I completely agree, the Matlab documentation makes it clear that the function or function handle passed in to fplot must accept a vector and return a vector of the same length which is the result of evaluating the function elementwise. Therefore @(x)1/x is an invalid argument for fplot, undefined behavior ensues. What I would recommend (I haven't looked into fplot yet) is perhaps an error if the size of the output obtained from calling the given function is not what is expected. That could make the problem clearer than a generic "nonconformant arguments" error. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?42050> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |