|
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
[Prev in Thread] | Current Thread | [Next in Thread] |