- MATLAB圖像處理超級學習手冊
- MATLAB技術聯盟 張巖編著
- 677字
- 2019-07-26 09:48:53
1.3 查詢幫助命令
MATLAB用戶可以在命令窗口中直接輸入命令來獲得相關的幫助信息,這種獲取方式比聯機幫助更為快捷。在命令窗口中獲取幫助信息的主要命令為help、lookfor以及模糊尋找,下面將介紹這些命令。
1.3.1 help命令
直接輸入help命令,會顯示當前的幫助系統中所包含的所有項目。需要注意的是,用戶在輸入該命令后,命令窗口只顯示當前搜索路徑中的所有目錄名稱。例如:
>>help HELP topics: help HELP topics: MATLABhdlcoder\MATLABhdlcoder -(No table of contents file) MATLABxl\MATLABxl -MATLAB Builder EX MATLAB\demos -Examples. MATLAB\graph2d -Two dimensional graphs. MATLAB\graph3d -Three dimensional graphs. MATLAB\graphics -Handle Graphics. MATLAB\plottools -Graphical plot editing tools MATLAB\scribe -Annotation and Plot Editing. MATLAB\specgraph -Specialized graphs ....... ....... 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. sin(X) is the sine of the elements of X. See also asin, sind. Overloaded methods: codistributed/sin gpuArray/sin Reference page in Help browser doc sin
1.3.2 lookfor函數的使用
當用戶不知道一些函數的確切名稱時,help函數就無能為力了,這時可以使用lookfor函數解決這個問題。
在使用lookfor函數時,用戶只需知道某個函數的部分關鍵字,在命令窗口中輸入lookfor+關鍵字,就可以很方便地實現查找。例如:
>>lookfor sin 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.3.3 模糊尋找
MATLAB還提供一種模糊尋找的命令查詢方法,只需在命令界面輸入命令的前幾個字母,然后按Tab鍵,系統便會列出所有以其開頭的命令。例如,在命令窗口中輸入“co”,然后按Tab鍵,運行結果如圖1-11所示。

圖1-11 模糊尋找結果
推薦閱讀
- iOS面試一戰到底
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- C語言程序設計實訓教程
- Lua程序設計(第4版)
- Flux Architecture
- C語言實驗指導及習題解析
- SAP BusinessObjects Dashboards 4.1 Cookbook
- R大數據分析實用指南
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Mastering React
- Scratch3.0趣味編程動手玩:比賽訓練營
- Visual Studio Code 權威指南
- Android應用開發深入學習實錄
- Java程序設計與項目案例教程
- Python自然語言理解:自然語言理解系統開發與應用實戰