msgbox (MATLAB Functions) (2024)

MATLAB Function Referencemsgbox (MATLAB Functions) (1)msgbox (MATLAB Functions) (2)

Create and display message box


  • msgbox(message)msgbox(message,title)msgbox(message,title,'icon')msgbox(message,title,'custom',iconData,iconCmap)msgbox(...,'createMode')h = msgbox(...)


msgbox(message) creates a message dialog box that automatically wraps message to fit an appropriately sized figure. message is a string vector, string matrix, or cell array.

msgbox(message,title) specifies the title of the message box.

msgbox(message,title,'icon') specifies which icon to display in the message box. 'icon' is 'none', 'error', 'help', 'warn', or 'custom'. The default is 'none'.

msgbox (MATLAB Functions) (3)

msgbox(message,title,'custom',iconData,iconCmap) defines a customized icon. iconData contains image data defining the icon; iconCmap is the colormap used for the image.

msgbox(...,'createMode') specifies whether the message box is modal or nonmodal, and if it is nonmodal, whether to replace another message box with the same title. Valid values for 'createMode' are 'modal', 'non-modal', and 'replace'.

h = msgbox(...) returns the handle of the box in h, which is a handle to a Figure graphics object.

See Also

dialog, errordlg, inputdlg, helpdlg, questdlg, textwrap, warndlg

Predefined Dialog Boxes for related functions

msgbox (MATLAB Functions) (4)mput (ftp)mtimesmsgbox (MATLAB Functions) (5)

© 1994-2005 The MathWorks, Inc.

msgbox (MATLAB Functions) (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 6374

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.