Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
在普通的类方法中,我可以为MATLAB中的“ help”命令提供内容。但是,在编写抽象方法时,帮助功能看不到抽象方法。例如,如果您有一个NeedsHelp类:
classdef NeedsHelp methods (Abstract) INeedHelp(self) % This method is not visible to the help command. end methods function IHaveHelp(self) % This method shows help as expected. end end end 帮助命令的行为如下(R2009b): >> help NeedsHelp.IHaveHelp This method shows help as expected. >> help NeedsHelp.INeedHelp NeedsHelp.INeedHelp not found. 是否有提供抽象方法文档的解决方案? 回答: 根据Loren在MathWorks上的博客,看来从R2009b开始这是不可能的。看到此评论和她的回复 。 更多&回答... |
![]() |
![]() |