How to make my help button will show matlab help?

别等时光非礼了梦想. 提交于 2020-01-30 11:28:25

问题


Hye guyz.. If i want to make a help button for my figure. 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? Is there any tutorials regarding making a help button?


回答1:


You can set the Callback property of the button to 'doc(''plot'')'. This command will be executed when the button is pressed.

You can set the callback with the property editor in 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)



回答2:


You may find the following article relevant.

Unfortunately, it appears that after many years of service, MathWorks has decided to finally remove this feature. I find this most regrettable because it is a fantastic feature.




回答3:


You can use eval. For example,

  • eval('help plot') will show help on the help command in the command window.

  • eval('doc plot') will open a document help file for the plot command.



来源:https://stackoverflow.com/questions/5224533/how-to-make-my-help-button-will-show-matlab-help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!