《MATLAB R2012a超级学习手册》一1.6 使用MATLAB R2012a帮助系统

本节书摘来自异步社区《MATLAB R2012a超级学习手册》一书中的第1章,第1.6节,作者 史洁玉 , 孔玲军,更多章节内容可以访问云栖社区“异步社区”公众号查看

1.6 使用MATLAB R2012a帮助系统

MATLAB R2012a超级学习手册
MATLAB提供了非常完善的帮助系统,下面介绍MATLAB中3种类型的帮助系统。

1.命令窗口查询帮助系统
常见的帮助命令如表1-5所示。

image

(1)Help命令:在命令窗口用于显示MATLAB函数的帮助。调用格式如下。

Help        //在命令窗口列出所有基本的帮助主题
help /        //列出所有运算符和特殊字符
help functionname     //在命令窗口列出functionname M文件的描述及语法
help toolboxname     //在命令窗口列出toolboxname文件夹中的内容
help toolboxname/functionname
help classname.methodname   //显示某一类的函数帮助
help classname
help syntax
t = help(’topic’)

示例1:在命令窗口中输入help命令,将出现如下所示的内容。

>> help
HELP topics:
matlabxl\matlabxl       - MATLAB Builder EX
matlab\demos          - Examples and demonstrations.
matlab\graph2d         - Two dimensional graphs.
matlab\graph3d         - Three dimensional graphs.
matlab\graphics        - Handle Graphics.
matlab\plottools        - Graphical plot editing tools 
…
blocks\library         - (No table of contents file)
simulink\simulink       - Simulink
simulink\blocks        - Simulink block library.
simulink\components      - Simulink components.
simulink\fixedandfloat     - Simulink Fixed Point utilities.
fixedandfloat\obsolete     - (No table of contents file)
simulink\dee          - Differential Equation Editor
simulink\MPlayIO        - (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
xpc\xpcdemos       - xPC Target -- demos and sample script files.

示例2:在命令窗口中输入help add命令,结果如下。

>> help add
 --- help for hgbin/add ---
hgbin/add Add method for hgbin object
  This file is an internal helper function for plot annotation.
  Overloaded methods:
    vdspdebug/add
    eclipseide/add
    ghsmulti/add
    ccsdebug/add
    iviconfigurationstore/add
    cgrules/add
    cgprojconnections/add
    des_constraints/add
    xregcontainer/add
    xregcardlayout/add
    xregmulti/add
    cgddnode/add

(2)lookfor命令:按照指定的关键字查找所有相关的M文件,其调用格式如下。

lookfor topic
lookfor topic–all

示例3:查找画图文件。

>>lookfor plot
refline         - Add a reference line to a plot.
scatterhist       - 2D scatter plot with marginal histograms.
silhouette        - Silhouette plot for clustered data.
surfht          - Interactive contour plot of a data grid.
wblplot          - Weibull probability plot.
weibplot         - Obsolete function
…
xbarplot         - X-bar chart for monitoring the mean.
videohistplots      - Helper function for displaying histogram
sameswfplot       - Same BSWFUN and WAVEFUN plots.
wdstem          - Plot discrete sequence data.
wgethist         - Build values to plot histogram.
wplothis         - Plots histogram obtained with WGETHIST.
wpplottr         - Plot wavelet packets tree.
wpssnode         - Plot wavelet packets synthesized node.
wsetxlab         - Plot xlabel.
wtbxdendrogram      - Generate dendrogram plot.

2.联机帮助系统
MATLAB的联机帮助系统非常全面。通过下面介绍的方法可以进入MATLAB的联机帮助系统,如图1-27所示。

直接单击MATLAB主窗口中的image按钮。
选中Help菜单的前4项中的任意一项。
在命令窗口中执行helpwin、helpdesk或doc。
联机帮助系统界面的菜单项与大多数Windows程序界面的菜单含义和用法都差不多,熟悉Windows的读者可以很容易地掌握,在此不作详细介绍。

帮助向导页面包含4个页面,分别是帮助主题(Contents)帮助索引(Index)查询帮助(Search)以及演示帮助(Demos)。

如果知道需要查询的内容的关键字,一般可选择Index或Search模式来查询;只知道需要查询的内容所属的主题或是只是想进一步了解和学习某一主题,一般可选择Contents或Demos模式来查询。

3.联机演示系统
通过联机演示系统,读者可以直观、快速地学习MATLAB中某个工具箱的使用方法。它是有关的参考书籍不能替代的。

通过以下方式可以打开联机演示系统。

选择MATLAB主窗口菜单的“Help→Demos”选项。
image

在命令窗口输入demos。
直接在帮助页面上选择Demos页。
示例:MATLAB帮助中的演示示例。

在MATLAB命令窗口中执行“>>demos”命令,弹出如图1-28所示的界面。在Demos页面中选择“Wavelet”工具箱中的“TutorialDemos1-D选项,如图1-29所示。

image

然后在右边窗口中选择“WaveletCoefficients1-D”选项打开对话框。用鼠标单击页面底部有下画线的文字“Run this demo”,打开如图1-29所示的示例界面窗口。在该窗口中单击“Getting Started”按钮,读者可以看到窗口中就会自动显示如图1-30所示的界面。

image

联机演示系统对于学习工具箱以及MATLAB各个方面的应用的读者非常有意义。通过演示示例,读者可以快速、直观地掌握某一工具的使用方法,而不必从枯燥的理论开始学起。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值