开发者

Is there anything like 'whereis' in MATLAB?

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开发者_如何学Python 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?


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' )


func_name is sometimes a file name contains the function to be evaluated on myArg. And it should be in the same directory of the main file unless specified.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜