[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46004] ezplot fails to recognise functions wi
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #46004] ezplot fails to recognise functions with 2 arguments passed as handles |
Date: |
Mon, 21 Sep 2015 20:49:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 |
Follow-up Comment #3, bug #46004 (project octave):
Which plot is considered the correct one?
ezplot(@f,[0,10,0,10]);
or
ezplot (@(a,b) a - b, [0, 10, 2, 10])
The reason
nargin (fun) == 2
doesn't work is that nargin has been declared as a variable which shadows the
function declaration. You can always use builtin() to recover the original
function.
builtin ("nargin", fun) == 2
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46004>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/