为什么当我在Matlab(search result)的帮助窗口中键入工具箱名称但使用help或doc命令键入工具箱时,看不到工具箱功能的任何结果(例如EEGlab中的topoplot)在命令行中得到结果(help result)?为什么这些搜索结果不一样?
答案 0 :(得分:0)
好吧,因为topoplot
不是MATLAB的本机函数,所以它也不是官方文档的一部分。这就是为什么您在文档中看不到某些内容的原因(而MATLAB会询问您是否有其他建议)。
调用help topoplot
时获得的信息就是在文件的开头或定义中关键字function
之后写为注释的信息。
% this is what you get
% this line too
% this not
function test()
end
如果您现在拨打help test
在关键字之后也可以使用
function test()
% this is what you get
% this is the second line
% you won't see this
end