help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error with function handles


From: Andrew Hills
Subject: Re: error with function handles
Date: Wed, 19 Aug 2009 08:27:58 -0400

>        y = eval(fun);

I'm no expert, but I'm pretty sure you do need to pass that argument
("x" for "myfun"). Try eval(sprintf("%s(%d)",fun,x)); if the variable
"x" in "midpntc" is the argument you want to pass to "fun".
(Obviously, change %d depending on the argument's type.)

--Andrew Hills



reply via email to

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