【文章內容簡介】
… help sum SUM Sum of elements. S = SUM(X) is the sum of the elements of the vector X. … MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 相信讀者會從以上顯示的結果感受到 help, help function name這 2種方式的區(qū)別。前者列出所有幫助主題;后者則列出具體函數的詳細幫助文檔。后者還可顯示某一類函數信息。如我們想查看 matlab的通用功能函數,通過 help path實現。 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 help matlab\general General purpose mands. MATLAB Version (R2021a) 01Feb2021 General information. syntax Help on MATLAB mand syntax. demo Run demonstrations. ver MATLAB, Simulink and toolbox version information. version MATLAB version information. verLessThan Compare version of toolbox to specified version string. MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 Managing the workspace. who List current variables. whos List current variables, long form. clear Clear variables and functions from memory. pack Consolidate workspace memory. load Load workspace variables from disk. save Save workspace variables to disk. saveas Save Figure or model to desired output format. memory Help for memory limitations. recycle Set option to move deleted files to recycle folder. quit Quit MATLAB session. exit Exit from MATLAB. MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 help命令可用于查詢具體確定的函數幫助文檔。與 help 命令不同, lookfor命令則是就幫助文檔中的 H1行進行關鍵字查詢。從中可以看出, lookfor查詢結果可能不夠精確,但對于不能確定函數名時,卻大有用處。有人把 lookfor命令比作 matlab中的 google或 baidu,一點也不為過。 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 注:演示例 6 查詢矩陣轉置的函數幫助文件。 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 幫助窗口 也可使用 type 命令查看函數的源代碼供自己分析。這對提高編程能力大有好處。 在程序設計過程中,經常需要詳細了解某個函數的具體使用方法。因此,掌握從 matlab中尋求幫助的方法至關重要。 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 圖形窗口 matlab用來直接輸出圖形的窗口。有關圖形窗口的操作,我們在后面繪圖一章將有詳細說明。這里給出一個例子,使讀者對圖形窗口先有個感性認識。 注:演示 例 7 將程序段生成 m文件,并在命令窗口中執(zhí)行該文件 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 編輯 /調試窗口 ( Edit/Debug Window) m文件可以在任何文本編輯器中編輯,但無法實時調試。 matlab內置的Editor/Debugger具有一定的編輯和調試功能。 MATLAB與控制系統(tǒng)仿真實踐, 北京航空航天大學出版社, . 在線交流,有問必答 編輯 /調試窗口 (