[英]How to make my help button will show matlab help?
Hye guyz.. If i want to make a help button for my figure. Hye guyz ..如果我想为我的身材制作一个帮助按钮。 How can i make if the user pressed the help button, it will appear matlab helper which is like product help, function browser and etc.. How can i link it? 如果用户按下帮助按钮,我将如何制作,它将显示matlab助手,如产品帮助,功能浏览器等。如何链接它? Is there any tutorials regarding making a help button? 是否有关于制作帮助按钮的教程?
You can set the Callback
property of the button to 'doc(''plot'')'
. 您可以将按钮的Callback
属性设置为'doc(''plot'')'
。 This command will be executed when the button is pressed. 按下按钮时将执行此命令。
You can set the callback with the property editor in GUIDE. 您可以使用GUIDE中的属性编辑器设置回调。 If you want to do it programmatically, you can generate the help button like this: 如果您想以编程方式执行此操作,可以生成如下所示的帮助按钮:
fh = figure
uicontrol('style','pushbutton','string','help','callback','doc(''plot'')','parent',fh)
You can use eval
. 你可以使用eval
。 For example, 例如,
eval('help plot')
will show help on the help
command in the command window. eval('help plot')
将在命令窗口中显示help
命令的help
。
eval('doc plot')
will open a document help file for the plot
command. eval('doc plot')
将打开plot
命令的文档帮助文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.