Displaying text in the command window when running a program
显示 更早的评论
Hi,
Am I being really stupid in failing to find how to display text in the command window when running my program?
Ie. I want to just have little sections of text that pop up explaining what is happening in the program-and I want these to be displayed in the command window for a user to see.
I have tried using the disp command, however as the text I am choosing to display has not been assigned to a variable so it will not work.
I guess one way to get around this, albeit messy, it is assign chunks of text to random variables and then choose the disp that variable-although it surely sounds like there is a tidier method.
Thanks in advance,
Mike Scott
1 个评论
saisanthosh prasen
2016-12-2
编辑:per isakson
2016-12-2
h = msgbox('Operation Completed'); using command like msgbox also u can get Pop up window...
For more details.. https://in.mathworks.com/help/matlab/ref/msgbox.html
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Function Creation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!