msgbox is not displaying the string entered in body
Show older comments
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)
dpb
on 20 Jun 2019
Should be
msgbox('Message','Title')
4 Comments
Sampath Rachumallu
on 20 Jun 2019
Edited: Sampath Rachumallu
on 20 Jun 2019
dpb
on 20 Jun 2019
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
Sampath Rachumallu
on 20 Jun 2019
Milad Mohammadzadeh Sharif
on 20 Jun 2019
Edited: Milad Mohammadzadeh Sharif
on 20 Jun 2019
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
Sampath Rachumallu
on 20 Jun 2019
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!