feval(@fun,...) vs. feval("fun",...)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

feval(@fun,...) vs. feval("fun",...)

Muhali
I just encountered an example with feval(f,...) where the result depends on whether f=@fun or f="fun".

I thought that is equivalent. Is it not?

M.
Reply | Threaded
Open this post in threaded view
|

Re: feval(@fun,...) vs. feval("fun",...)

Jordi Gutiérrez Hermoso-2
On 3 February 2012 21:37, Muhali <[hidden email]> wrote:
> I just encountered an example with feval(f,...) where the result depends on
> whether f=@fun or f="fun".
>
> I thought that is equivalent. Is it not?

What was the example?

- Jordi G. H.
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: feval(@fun,...) vs. feval("fun",...)

Muhali
Jordi Gutiérrez Hermoso-2 wrote
What was the example?
quite complicated, including recursive function calls etc.

I'll try to distill the essentials.

So in theory, are feval(@fun) and feval("fun") equivalent?

M.