views:

54

answers:

1

I have a line in the code I'm working on like this:

feval('func_name', myArg);

And it works, but I want to know where func_name is. I can't step into feval to see where it is finding func_name. Instead of (or in addition to) just doing func_name, how can I get MATLAB to tell me where it found it?

+5  A: 

which is the function you're looking for.

See: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/which.html for more. For example:

fullpath = which( 'func_name' )
Edric