msgbox is not displaying the string entered in body

I am using msgbox function in Matlab to display a message.
%This is the code i have written
msgbox('I am the title','I am the body');
I am getting message box with
'I am the body" in title of msgbox and nothing in the body of msgbox
I am using R2019a version.Kindly help me to solve this issue

Answers (2)

Should be
msgbox('Message','Title')

4 Comments

Well I tried with your code.I wrote
msgbox('Message','Title');
I am getting message box with title as 'title'
and no text in body of message box. I tried the same in 2015 version and it's working perfectly fine.I think there is a problem with 2019 version
Have you tried restarting a new Matlab session to see if symptom goes away?
If, indeed, this occurs repeatedly, then does seem there's an issue. Submit an official bug report/service request illustrating problem to the 'Contact Support' link on the official "Support" page.
Seems more likely to be something specific with a display driver or the like than an actual code bug given age of the msgbox() function, but who knows what might be root cause...
Also worth checking:
which msgbox -all
Yeah I restarted the session multiple times, but the output didn't change at all.
I will definitely submit the bug report to know the root cause.

Sign in to comment.

The first input for the "msgbox" function takes place in the body of your message box,
The second input will be the smallest of your message box.
and there is a third input which is determine the window mode.
here you can see my code:
msgbox ( 'i am the little' , 'I am the body' , "non-modal" )

1 Comment

I tried your code too,but the output remained same. I got a message box with no text in its body

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Asked:

on 20 Jun 2019

Edited:

on 28 Apr 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!