Is there something like "whereis" in MATLAB?

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

feval('func_name', myArg);

And it works, but I want to know where func_name. I can’t go in fevalto see where it is func_name. Instead of (or in addition) just doing func_name, how can I get MATLAB to tell me where he found it?

+3
source share
2 answers

which is the feature you are looking for.

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

fullpath = which( 'func_name' )
+6
source

func_name , myArg. , .

-1

Source: https://habr.com/ru/post/1754430/


All Articles