Description and DetailedDescription attributes of MATLAB classes

后端 未结 1 746
情歌与酒
情歌与酒 2021-02-09 12:39

Built-in MATLAB classes have values for a Description and DetailedDescription attribute:

>> ?handle
ans = 
  meta.class handle
  Package: meta

  Propertie         


        
1条回答
  •  说谎
    说谎 (楼主)
    2021-02-09 13:38

    Use arguments to the classdef:

    classdef (Description='A type of story.',...
        DetailedDescription='Once upon a time..') MyFairyTaleClass
    

    Commandline:

    >> ?MyFairyTaleClass
    
    ans = 
    
      meta.class handle
      Package: meta
    
      Properties:
                         Name: 'MyFairyTaleClass'
                  Description: 'A type of story.'
          DetailedDescription: 'Once upon a time..'
                       Hidden: 0
                       Sealed: 0
              ConstructOnLoad: 0
             HandleCompatible: 0
              InferiorClasses: {0x1 cell}
    

    This is an undocumented feature it seems.

    0 讨论(0)
提交回复
热议问题