Display the array/matrix in GUI

3 次查看(过去 30 天)
Son
Son 2013-8-15
Hi everyone,
I have a GUI and now I want to display my analysis result which is an array by clicking a button in GUI. What should I do inside the callback function of this button. Does anyone have an idea how to do that ?.
  1 个评论
Jan
Jan 2013-8-16
You will have to be way more specific than this to recieve a reasonable answer to your question. What kind of data is the result of your analysis (i.e. vector, matrix, cell array ... ) and how do you want to display it (i.e. do you want to plot it, export it to the file system or present it on the GUI in a uitable? - I'm guessing the latter, as you tagged your question with 'table')?

请先登录,再进行评论。

回答(1 个)

David Sanchez
David Sanchez 2013-8-16
In the callback function, you do the same that you would do in the command line in order to present your data, taking from granted that you placed an axis object in your GUI.
If you want to plot data, place in the following in your callback function:
plot(your_x_data, your_y_data)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by