From: Michael C. <mic...@ua...> - 2004-05-21 08:53:20
|
On Thursday 20 May 2004 18:42, Paul Kienzle wrote: > On May 20, 2004, at 8:36 AM, Michael Creel wrote: > > There is also a celleval.cc, which is like leval.cc, but for cells. > > Perhaps > > this might be useful in contexts other that optimization. > > Can you remind me again how celleval('f',x) differs from f(x{:})? > You can use it inside an .oct function. See bfgsmin.cc for an example. If there is a more straightforward way to do this, I'd be happy to know about it. The problem inside bfgsmin is that we don't know how many arguments the function to be minimized has. So, they are all collected into a cell array, so that feval is called with the function name "celleval" and a single argument, which holds the name of the function to be evaluated and its arguments. Michael |