3

一般来说,如果我有一个函数句柄(但没有函数名),有没有办法查看与该函数关联的“帮助”注释块?

4

1 回答 1

5

Convert the handle to a string with func2str() and call help() on it:

f = @sum;
help(func2str(f))

You might need to regexp() the string, if you have an anonymous function.

于 2013-06-04T17:09:41.007 回答