简体   繁体   English

如何制作我的帮助按钮会显示matlab帮助?

[英]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 may find the following article relevant. 您可能会发现以下文章相关。

Unfortunately, it appears that after many years of service, MathWorks has decided to finally remove this feature. 不幸的是,经过多年的服务,MathWorks似乎决定最终删除此功能。 I find this most regrettable because it is a fantastic feature. 我发现这是最令人遗憾的,因为它是一个很棒的功能。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM