How to make my help button will show matlab help?

后端 未结 3 1073
Happy的楠姐
Happy的楠姐 2021-01-25 22:16

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 b

3条回答
  •  Happy的楠姐
    2021-01-25 23:12

    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)
    

提交回复
热议问题