《MATLAB图像处理375例》——1.9 查询帮助命令

    xiaoxiao2023-09-01  186

    本节书摘来自异步社区《MATLAB图像处理375例》一书中的第1章,第1.9节,作者:MATLAB技术联盟著,更多章节内容可以访问云栖社区“异步社区”公众号查看

    1.9 查询帮助命令

    MATLAB图像处理375例MATLAB用户可以通过在命令行窗口中直接输入命令来获得相关的帮助信息,这种获取方式比联机帮助更为快捷。在命令行窗口中获取帮助信息的主要命令为help和lookfor以及模糊寻找,下面将介绍这些命令。

    1.9.1 help命令直接输入help命令,会显示当前的帮助系统中所包含的所有项目。需要注意的是用户在输入该命令后,命令行窗口只显示当前搜索路径中的所有目录名称。例如,在命令行窗口输入:

    >>help 帮助主题: toolbox\local         - General preferences and configuration information. matlab\codetools        - Commands for creating and debugging code matlab\datafun         - Data analysis and Fourier transforms. matlab\datamanager       - (没有目录文件) matlab\datatypes        - Data types and structures. matlab\elfun          - Elementary math functions. matlab\elmat          - Elementary matrices and matrix manipulation. matlab\funfun         - Function functions and ODE solvers. matlab\general         - General purpose commands. matlab\guide          - Graphical user interface design environment matlab\helptools        - Help commands. matlab\iofun          - File input and output. matlab\lang          - Programming language constructs. matlab\matfun         - Matrix functions - numerical linear algebra. matlab\ops           - Operators and special characters. matlab\polyfun         - Interpolation and polynomials. matlab\randfun         - Random matrices and random streams. matlab\sparfun         - Sparse matrices. matlab\specfun         - Specialized math functions. matlab\strfun         - Character strings. .……              .…… vnt\vntguis          - (No table of contents file) vnt\vntdemos         - (No table of contents file) vntblks\vntblks        - (No table of contents file) vntblks\vntmasks       - (No table of contents file) wavelet\wavelet        - Wavelet Toolbox wavelet\wmultisig1d      - (No table of contents file) wavelet\wavedemo       - (No table of contents file) wavelet\compression      - (No table of contents file) xpc\xpc           - xPC Target xpcblocks\thirdpartydrivers   - (No table of contents file) build\xpcblocks        - xPC Target -- Blocks build\xpcobsolete       - (No table of contents file) xpc\xpcdemos         - xPC Target -- examples and sample script files.

    如果用户知道某个函数名称,并想了解该函数的具体用法,只需在命令行窗口中输入:

    help+函数名

    例如,在命令行窗口输入:

    >> help sin sin - Sine of argument in radians   This MATLAB function returns the sine of the elements of X.   Y = sin(X)   sin 的参考页   另请参阅 asin, asind, sind, sinh   名为 sin 的其他函数     fixedpoint/sin, symbolic/sin 1.2.2 lookfor函数的使用

    当用户不知道函数的确切名称时,help函数就无能为力了,但可以使用lookfor函数方便地解决这个问题。在使用lookfor函数时,用户只需知道某个函数的部分关键字,在命令行窗口中输入:

    lookfor+关键字

    可以很方便地实现查找。例如,在命令行窗口输入:

    >>lookfor sin BioIndexedFile     - class allows random read access to text files using an index file. loopswitch       - Create switch for opening and closing feedback loops. mbcinline       - replacement version of inline using anonymous functions cgslblock     - Constructor for calibration Generation Simulink block parsing manager xregaxesinput         - Constructor for the axes input object for a ListCtrl ExhaustiveSearcher       - Neighbor search object using exhaustive search. KDTreeSearcher         - Neighbor search object using a kd-tree. ……               …… sample_supported        - <name>_supported fills in a single instance or an array dxpcUDP1            - Target to Host Transmission using UDP dxpcUDP2            - Target to Target Transmission using UDP j1939exampleDemo        - J1939 - Using Transport Protocol scscopedemo          - Signal Tracing Using Scope Triggering scsignaldemo          - Signal Tracing Using Signal Triggering scsoftwaredemo         - Signal Tracing Using Software Triggering

    1.9.2 模糊寻找MATLAB还提供一种模糊寻找的命令查询方法,只需在命令界面输入命令的前几个字母,然后按Tab键,系统将列出所有以其开头的命令。例如在命令行窗口输入“so”,然后按Tab键,运行结果如图1-17所示。

    相关资源:数字图像处理的MATLAB实现 (第2版)
    最新回复(0)