This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Create help dialog box


h = helpdlg(...)


helpdlg creates a nonmodal help dialog box or brings the named help dialog box to the front.


A nonmodal dialog box enables the user to interact with other windows before responding. For more information, see WindowStyle in the MATLAB® Figure Properties.

helpdlg displays a dialog box named 'Help Dialog' containing the message, 'This is the default help.'

helpdlg(helpstring) displays a dialog box named 'Help Dialog' containing the message specified by helpstring.

helpdlg(helpstring,dlgname) displays a dialog box entitled dlgname containing the message specified by helpstring.

h = helpdlg(...) returns the handle of the dialog box.


The statement

helpdlg('Choose 10 points from the figure',...
        'Point Selection');

displays this dialog box:


MATLAB wraps the text in 'helpstring' to fit the width of the dialog box. The dialog box remains on your screen until you press the OK button or the Enter key. After either of these actions, the help dialog box disappears.

Introduced before R2006a

Was this topic helpful?