How to display on GUI?
2 次查看(过去 30 天)
显示 更早的评论
How to display user defined string value using input dialogue on the gui,,, suppose user enters some string,,,and it will come to workspace,,,and i want to show those user defined string on the GUI
0 个评论
回答(1 个)
Image Analyst
2013-2-11
First of all, look at Doug Hull's blogs on making GUIs. http://blogs.mathworks.com/videos/category/gui-or-guide/
The answer to your question is to make up a string, say with sprintf(), then use set() to send it to the text label control:
set(handles.text1, 'String', yourString);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!