msgbox is not displaying the string entered in body

5 次查看(过去 30 天)
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

回答(2 个)

dpb
dpb 2019-6-20
Should be
msgbox('Message','Title')
  4 个评论
Sampath Rachumallu
Sampath Rachumallu 2019-6-20
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.

请先登录,再进行评论。


Milad Mohammadzadeh Sharif
编辑:Milad Mohammadzadeh Sharif 2019-6-20
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 个评论
Sampath Rachumallu
Sampath Rachumallu 2019-6-20
I tried your code too,but the output remained same. I got a message box with no text in its body

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by