本文共 3637 字,大约阅读时间需要 12 分钟。
本节书摘来自异步社区《MATLAB图像处理375例》一书中的第1章,第1.9节,作者:MATLAB技术联盟著,更多章节内容可以访问云栖社区“异步社区”公众号查看
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 codematlab\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 environmentmatlab\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 Toolboxwavelet\wmultisig1d - (No table of contents file)wavelet\wavedemo - (No table of contents file)wavelet\compression - (No table of contents file)xpc\xpc - xPC Targetxpcblocks\thirdpartydrivers - (No table of contents file)build\xpcblocks - xPC Target -- Blocksbuild\xpcobsolete - (No table of contents file)xpc\xpcdemos - xPC Target -- examples and sample script files.
如果用户知道某个函数名称,并想了解该函数的具体用法,只需在命令行窗口中输入:
help+函数名
例如,在命令行窗口输入:
>> help sinsin - 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 sinBioIndexedFile - 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 functionscgslblock - Constructor for calibration Generation Simulink block parsing managerxregaxesinput - Constructor for the axes input object for a ListCtrlExhaustiveSearcher - Neighbor search object using exhaustive search.KDTreeSearcher - Neighbor search object using a kd-tree.…… ……sample_supported -_supported fills in a single instance or an arraydxpcUDP1 - Target to Host Transmission using UDPdxpcUDP2 - Target to Target Transmission using UDPj1939exampleDemo - J1939 - Using Transport Protocolscscopedemo - Signal Tracing Using Scope Triggeringscsignaldemo - Signal Tracing Using Signal Triggeringscsoftwaredemo - Signal Tracing Using Software Triggering
1.9.2 模糊寻找
MATLAB还提供一种模糊寻找的命令查询方法,只需在命令界面输入命令的前几个字母,然后按Tab键,系统将列出所有以其开头的命令。例如在命令行窗口输入“so”,然后按Tab键,运行结果如图1-17所示。转载地址:http://mdytx.baihongyu.com/