views:

61

answers:

1

In ordinary class methods I can supply content for the "help" command in MATLAB. However, when writing an abstract method, the help function does not see the abstract methods. For example, if you have a class 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

The help command acts as follows (R2009b):

>> help NeedsHelp.IHaveHelp
  This method shows help as expected.

>> help NeedsHelp.INeedHelp

NeedsHelp.INeedHelp not found.

Are there any solutions to providing documentation for abstract methods?

+1  A: 

Looks like this is not possible as of R2009b, according to Loren's blog at The MathWorks. See this comment and her reply.

Arthur Ward
Doesn't work in 2010a prerelease either
Jonas