[英]How do I display data/information with Matlab App Designer?
I would like to display some information to the user via Matlab App Designer's GUI. 我想通过Matlab App Designer的GUI向用户显示一些信息。 I am new to this program and can't seem to find a widget that provides what I feel should be a simple function.
我是该程序的新手,似乎找不到提供我认为应该是简单功能的小部件。 Am I missing something?
我想念什么吗? Examples would include showing the user:
示例包括向用户显示:
Is there a way to capture the output in the Matlab command line and report these in a window of some sort in the GUI? 有没有办法在Matlab命令行中捕获输出并在GUI的某种窗口中报告这些输出? Thanks in advance!
提前致谢!
You can use a TextArea to display information for the user. 您可以使用TextArea为用户显示信息。 Here's how I made a simple example:
这是我做的一个简单示例:
Edit the callback to contain 编辑回调以包含
answer = 'what your want to display'; app.FeedbackTextArea.Value = answer;
When you push the button the text area gets filled. 当您按下按钮时,文本区域将被填充。 In your code, instead of just setting 'answer' to some string, set a variable using whatever code is dealing with your user's information.
在您的代码中,不仅仅是将“ answer”设置为某个字符串,还可以使用处理用户信息的任何代码来设置变量。 The key is to store what you want the user to see in a variable and then assign that to the "Value" parameter of the text area or other widget where you want them to see the results.
关键是将您希望用户看到的内容存储在变量中,然后将其分配给您希望用户看到结果的文本区域或其他小部件的“ Value”参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.