msgbox is not displaying the string entered in body

조회 수: 3 (최근 30일)
Sampath Rachumallu
Sampath Rachumallu 2019년 6월 20일
편집: Sampath Rachumallu 2020년 4월 28일
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
Stephen23
Stephen23 2019년 6월 20일
편집: Stephen23 2019년 6월 20일
Also worth checking:
which msgbox -all
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일
편집: 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에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by