Main Content

获得帮助

此示例说明如何使用“help”命令显示 MATLAB 的帮助。

命令“help”在命令行窗口中列出所有主要帮助主题。“help name”格式显示由名称指定的功能的帮助文本,如函数、方法、类或变量。

disp('Display help for the ''close'' function.')
disp('>> help close')
help close
Display help for the 'close' function.
>> help close
 CLOSE  Close figure.
    CLOSE(H) closes the window with handle H.
    CLOSE, by itself, closes the current figure window.
 
    CLOSE('name') closes the named window.
 
    CLOSE ALL  closes all figure windows whose handles are not hidden.
    CLOSE ALL HIDDEN  closes hidden windows as well.
    CLOSE ALL FORCE  unconditionally closes all windows by deleting them
    without executing the close request function.
 
    STATUS = CLOSE(...) returns 1 if the specified windows were closed
    and 0 otherwise.
 
    See also DELETE.

    Documentation for close
       doc close

    Other uses of close

       instrument/close
       matlab.desktop.editor.Document/close
       matlab.desktop.editor.DocumentInterface/close
       matlab.desktop.editor.JavaEditorDocument/close
       matlab.desktop.editor.RtcEditorDocument/close
       ooinfopkg.ooinfoclass/close
       serial/close